mirror of
https://github.com/CumulusNetworks/ifupdown2.git
synced 2024-05-06 15:54:50 +00:00
Fix bash completion for sudo users (mostly cosmetic) + man page and
example fixes Ticket: CM-2911 Reviewed By: CCR-1637 Testing Done: tested ifupdown2 sanity and bash completion The python argcomplete module that i use for ifupdown2 has a limitation that it does not work with sudo when used in the global mode. But there is a workaround for it online (long story short...instead of enabling the global argparse complete ...the author recommends registering argparse complete bash completion individually for your script). This patch does just that. This patch also moves the udev overrides to their respective packages. Two of them are owned by ifupdown2. Conflicts: rootconf/default/home/cumulus/sysroot-complete
This commit is contained in:
@@ -11,6 +11,19 @@ iface eth0 inet dhcp
|
||||
|
||||
#source /etc/network/interfaces.d/template.bridges
|
||||
|
||||
# swp interface
|
||||
auto swp30
|
||||
iface swp30
|
||||
address 12.0.0.4/24
|
||||
address 12.0.0.6/24
|
||||
address 2000:1000:1000:1000:3::5/128
|
||||
mtu 1600
|
||||
alias "test network"
|
||||
duplex full
|
||||
autoneg on
|
||||
speed 1000
|
||||
|
||||
# bond interface
|
||||
auto bond3
|
||||
iface bond3 inet static
|
||||
address 100.0.0.4/16
|
||||
@@ -22,6 +35,7 @@ iface bond3 inet static
|
||||
bond-min-links 1
|
||||
bond-xmit_hash_policy layer3+4
|
||||
|
||||
# bond interface
|
||||
auto bond4
|
||||
iface bond4 inet static
|
||||
address 100.0.0.6/16
|
||||
@@ -33,14 +47,16 @@ iface bond4 inet static
|
||||
bond-min-links 1
|
||||
bond-xmit_hash_policy layer3+4
|
||||
|
||||
# bond interface
|
||||
auto br0
|
||||
iface br0
|
||||
address 12.0.0.4/24
|
||||
address 12.0.0.6/24
|
||||
address6 2000:1000:1000:1000:3::5/128
|
||||
mstpctl_ports bond3 bond4 swp5 swp8
|
||||
mstpctl_stp on
|
||||
address 2000:1000:1000:1000:3::5/128
|
||||
bridge-ports bond3 bond4 swp5 swp8
|
||||
bridge-stp on
|
||||
|
||||
# vlan interface on bond
|
||||
auto bond3.2000
|
||||
iface bond3.2000 inet static
|
||||
address 100.1.0.4/16
|
||||
@@ -51,7 +67,8 @@ iface bond4.2000 inet static
|
||||
|
||||
auto br2000
|
||||
iface br2000 inet6 static
|
||||
address6 2001:dad:beef::4/64
|
||||
mstpctl_ports bond3.2000 bond4.2000 swp5.2000
|
||||
mstpctl_treeprio 61440
|
||||
mstpctl_stp on
|
||||
address 2001:dad:beef::4/64
|
||||
bridge-ports bond3.2000 bond4.2000 swp5.2000
|
||||
bridge-stp on
|
||||
mstpctl-treeprio 61440
|
||||
mstpctl-portp2p bond3.2000=yes bond4.2000=yes
|
||||
|
Reference in New Issue
Block a user