mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-04-28 13:21:25 -07:00
interfaces_file: Add test for pre-up/post-up with inet/inet6
This commit is contained in:
parent
bd7001cdb6
commit
4352a4e54d
56 changed files with 1008 additions and 10 deletions
|
@ -5,6 +5,8 @@ iface lo inet loopback
|
||||||
# The primary network interface
|
# The primary network interface
|
||||||
iface eth0 inet static
|
iface eth0 inet static
|
||||||
address 192.168.0.1
|
address 192.168.0.1
|
||||||
|
post-up echo configuring ipv4
|
||||||
|
|
||||||
iface eth0 inet6 static
|
iface eth0 inet6 static
|
||||||
address fc00::1
|
address fc00::1
|
||||||
|
post-up echo configuring ipv6
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
"address_family": "inet6",
|
"address_family": "inet6",
|
||||||
"down": [],
|
"down": [],
|
||||||
"method": "static",
|
"method": "static",
|
||||||
"post-up": [],
|
"post-up": [
|
||||||
|
"echo configuring ipv6"
|
||||||
|
],
|
||||||
"pre-up": [],
|
"pre-up": [],
|
||||||
"up": []
|
"up": []
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,6 +5,8 @@ iface lo inet loopback
|
||||||
# The primary network interface
|
# The primary network interface
|
||||||
iface eth0 inet static
|
iface eth0 inet static
|
||||||
address 192.168.0.1
|
address 192.168.0.1
|
||||||
|
post-up echo configuring ipv4
|
||||||
|
|
||||||
iface eth0 inet6 static
|
iface eth0 inet6 static
|
||||||
address fc00::1
|
address fc00::1
|
||||||
|
post-up echo configuring ipv6
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
"address_family": "inet6",
|
"address_family": "inet6",
|
||||||
"down": [],
|
"down": [],
|
||||||
"method": "static",
|
"method": "static",
|
||||||
"post-up": [],
|
"post-up": [
|
||||||
|
"echo configuring ipv6"
|
||||||
|
],
|
||||||
"pre-up": [],
|
"pre-up": [],
|
||||||
"up": []
|
"up": []
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,6 +5,8 @@ iface lo inet loopback
|
||||||
# The primary network interface
|
# The primary network interface
|
||||||
iface eth0 inet static
|
iface eth0 inet static
|
||||||
address 192.168.0.1
|
address 192.168.0.1
|
||||||
|
post-up echo configuring ipv4
|
||||||
|
|
||||||
iface eth0 inet6 static
|
iface eth0 inet6 static
|
||||||
address fc00::1
|
address fc00::1
|
||||||
|
post-up echo configuring ipv6
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
"address_family": "inet6",
|
"address_family": "inet6",
|
||||||
"down": [],
|
"down": [],
|
||||||
"method": "static",
|
"method": "static",
|
||||||
"post-up": [],
|
"post-up": [
|
||||||
|
"echo configuring ipv6"
|
||||||
|
],
|
||||||
"pre-up": [],
|
"pre-up": [],
|
||||||
"up": []
|
"up": []
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,6 +5,8 @@ iface lo inet loopback
|
||||||
# The primary network interface
|
# The primary network interface
|
||||||
iface eth0 inet static
|
iface eth0 inet static
|
||||||
address 192.168.0.42
|
address 192.168.0.42
|
||||||
|
post-up echo configuring ipv4
|
||||||
|
|
||||||
iface eth0 inet6 static
|
iface eth0 inet6 static
|
||||||
address fc00::1
|
address fc00::1
|
||||||
|
post-up echo configuring ipv6
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
"address_family": "inet6",
|
"address_family": "inet6",
|
||||||
"down": [],
|
"down": [],
|
||||||
"method": "static",
|
"method": "static",
|
||||||
"post-up": [],
|
"post-up": [
|
||||||
|
"echo configuring ipv6"
|
||||||
|
],
|
||||||
"pre-up": [],
|
"pre-up": [],
|
||||||
"up": []
|
"up": []
|
||||||
},
|
},
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
# The loopback network interface
|
||||||
|
auto lo eth0
|
||||||
|
iface lo inet loopback
|
||||||
|
|
||||||
|
# The primary network interface
|
||||||
|
iface eth0 inet static
|
||||||
|
address 192.168.0.1
|
||||||
|
post-up echo configuring ipv4
|
||||||
|
post-up XXXX_ipv4
|
||||||
|
|
||||||
|
iface eth0 inet6 static
|
||||||
|
address fc00::1
|
||||||
|
post-up echo configuring ipv6
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"eth0": {
|
||||||
|
"address": "fc00::1",
|
||||||
|
"address_family": "inet6",
|
||||||
|
"down": [],
|
||||||
|
"method": "static",
|
||||||
|
"post-up": [
|
||||||
|
"echo configuring ipv6"
|
||||||
|
],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"lo": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "loopback",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
# The loopback network interface
|
||||||
|
auto lo eth0
|
||||||
|
iface lo inet loopback
|
||||||
|
|
||||||
|
# The primary network interface
|
||||||
|
iface eth0 inet static
|
||||||
|
address 192.168.0.1
|
||||||
|
post-up echo configuring ipv4
|
||||||
|
pre-up XXXX_ipv4
|
||||||
|
|
||||||
|
iface eth0 inet6 static
|
||||||
|
address fc00::1
|
||||||
|
post-up echo configuring ipv6
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"eth0": {
|
||||||
|
"address": "fc00::1",
|
||||||
|
"address_family": "inet6",
|
||||||
|
"down": [],
|
||||||
|
"method": "static",
|
||||||
|
"post-up": [
|
||||||
|
"echo configuring ipv6"
|
||||||
|
],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"lo": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "loopback",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,6 +5,8 @@ iface lo inet loopback
|
||||||
# The primary network interface
|
# The primary network interface
|
||||||
iface eth0 inet static
|
iface eth0 inet static
|
||||||
address 192.168.0.1
|
address 192.168.0.1
|
||||||
|
post-up echo configuring ipv4
|
||||||
|
|
||||||
iface eth0 inet6 static
|
iface eth0 inet6 static
|
||||||
address fc00::42
|
address fc00::42
|
||||||
|
post-up echo configuring ipv6
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
"address_family": "inet6",
|
"address_family": "inet6",
|
||||||
"down": [],
|
"down": [],
|
||||||
"method": "static",
|
"method": "static",
|
||||||
"post-up": [],
|
"post-up": [
|
||||||
|
"echo configuring ipv6"
|
||||||
|
],
|
||||||
"pre-up": [],
|
"pre-up": [],
|
||||||
"up": []
|
"up": []
|
||||||
},
|
},
|
||||||
|
|
|
@ -0,0 +1,13 @@
|
||||||
|
# The loopback network interface
|
||||||
|
auto lo eth0
|
||||||
|
iface lo inet loopback
|
||||||
|
|
||||||
|
# The primary network interface
|
||||||
|
iface eth0 inet static
|
||||||
|
address 192.168.0.1
|
||||||
|
post-up echo configuring ipv4
|
||||||
|
|
||||||
|
iface eth0 inet6 static
|
||||||
|
address fc00::1
|
||||||
|
post-up echo configuring ipv6
|
||||||
|
post-up XXXX_ipv6
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"eth0": {
|
||||||
|
"address": "fc00::1",
|
||||||
|
"address_family": "inet6",
|
||||||
|
"down": [],
|
||||||
|
"method": "static",
|
||||||
|
"post-up": [
|
||||||
|
"echo configuring ipv6"
|
||||||
|
],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"lo": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "loopback",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,13 @@
|
||||||
|
# The loopback network interface
|
||||||
|
auto lo eth0
|
||||||
|
iface lo inet loopback
|
||||||
|
|
||||||
|
# The primary network interface
|
||||||
|
iface eth0 inet static
|
||||||
|
address 192.168.0.1
|
||||||
|
post-up echo configuring ipv4
|
||||||
|
|
||||||
|
iface eth0 inet6 static
|
||||||
|
address fc00::1
|
||||||
|
post-up echo configuring ipv6
|
||||||
|
pre-up XXXX_ipv6
|
|
@ -0,0 +1,21 @@
|
||||||
|
{
|
||||||
|
"eth0": {
|
||||||
|
"address": "fc00::1",
|
||||||
|
"address_family": "inet6",
|
||||||
|
"down": [],
|
||||||
|
"method": "static",
|
||||||
|
"post-up": [
|
||||||
|
"echo configuring ipv6"
|
||||||
|
],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"lo": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "loopback",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,6 +5,8 @@ iface lo inet loopback
|
||||||
# The primary network interface
|
# The primary network interface
|
||||||
iface eth0 inet manual
|
iface eth0 inet manual
|
||||||
address 192.168.0.1
|
address 192.168.0.1
|
||||||
|
post-up echo configuring ipv4
|
||||||
|
|
||||||
iface eth0 inet6 manual
|
iface eth0 inet6 manual
|
||||||
address fc00::1
|
address fc00::1
|
||||||
|
post-up echo configuring ipv6
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
"address_family": "inet6",
|
"address_family": "inet6",
|
||||||
"down": [],
|
"down": [],
|
||||||
"method": "manual",
|
"method": "manual",
|
||||||
"post-up": [],
|
"post-up": [
|
||||||
|
"echo configuring ipv6"
|
||||||
|
],
|
||||||
"pre-up": [],
|
"pre-up": [],
|
||||||
"up": []
|
"up": []
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,6 +5,8 @@ iface lo inet loopback
|
||||||
# The primary network interface
|
# The primary network interface
|
||||||
iface eth0 inet static
|
iface eth0 inet static
|
||||||
address 192.168.0.1
|
address 192.168.0.1
|
||||||
|
post-up echo configuring ipv4
|
||||||
|
|
||||||
iface eth0 inet6 static
|
iface eth0 inet6 static
|
||||||
address fc00::1
|
address fc00::1
|
||||||
|
post-up echo configuring ipv6
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
"address_family": "inet6",
|
"address_family": "inet6",
|
||||||
"down": [],
|
"down": [],
|
||||||
"method": "static",
|
"method": "static",
|
||||||
"post-up": [],
|
"post-up": [
|
||||||
|
"echo configuring ipv6"
|
||||||
|
],
|
||||||
"pre-up": [],
|
"pre-up": [],
|
||||||
"up": []
|
"up": []
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,7 +5,9 @@ iface lo inet loopback
|
||||||
# The primary network interface
|
# The primary network interface
|
||||||
iface eth0 inet static
|
iface eth0 inet static
|
||||||
address 192.168.0.1
|
address 192.168.0.1
|
||||||
|
post-up echo configuring ipv4
|
||||||
|
|
||||||
iface eth0 inet6 static
|
iface eth0 inet6 static
|
||||||
address fc00::1
|
address fc00::1
|
||||||
|
post-up echo configuring ipv6
|
||||||
mtu 1350
|
mtu 1350
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
"address_family": "inet6",
|
"address_family": "inet6",
|
||||||
"down": [],
|
"down": [],
|
||||||
"method": "static",
|
"method": "static",
|
||||||
"post-up": [],
|
"post-up": [
|
||||||
|
"echo configuring ipv6"
|
||||||
|
],
|
||||||
"pre-up": [],
|
"pre-up": [],
|
||||||
"up": []
|
"up": []
|
||||||
},
|
},
|
||||||
|
|
|
@ -5,6 +5,8 @@ iface lo inet loopback
|
||||||
# The primary network interface
|
# The primary network interface
|
||||||
iface eth0 inet static
|
iface eth0 inet static
|
||||||
address 192.168.0.1
|
address 192.168.0.1
|
||||||
|
post-up echo configuring ipv4
|
||||||
|
|
||||||
iface eth0 inet6 static
|
iface eth0 inet6 static
|
||||||
address fc00::1
|
address fc00::1
|
||||||
|
post-up echo configuring ipv6
|
||||||
|
|
|
@ -4,7 +4,9 @@
|
||||||
"address_family": "inet6",
|
"address_family": "inet6",
|
||||||
"down": [],
|
"down": [],
|
||||||
"method": "static",
|
"method": "static",
|
||||||
"post-up": [],
|
"post-up": [
|
||||||
|
"echo configuring ipv6"
|
||||||
|
],
|
||||||
"pre-up": [],
|
"pre-up": [],
|
||||||
"up": []
|
"up": []
|
||||||
},
|
},
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
# The loopback network interface
|
||||||
|
auto lo eth0
|
||||||
|
iface lo inet loopback
|
||||||
|
|
||||||
|
# The primary network interface
|
||||||
|
iface eth0 inet dhcp
|
||||||
|
post-up XXXX_ipv4
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"eth0": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "dhcp",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"lo": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "loopback",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,7 @@
|
||||||
|
# The loopback network interface
|
||||||
|
auto lo eth0
|
||||||
|
iface lo inet loopback
|
||||||
|
|
||||||
|
# The primary network interface
|
||||||
|
iface eth0 inet dhcp
|
||||||
|
pre-up XXXX_ipv4
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"eth0": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "dhcp",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"lo": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "loopback",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
# The loopback network interface
|
||||||
|
auto lo eth0
|
||||||
|
iface lo inet loopback
|
||||||
|
|
||||||
|
# The primary network interface
|
||||||
|
iface eth0 inet dhcp
|
|
@ -0,0 +1,9 @@
|
||||||
|
fail_json message: Error: interface eth0 not found
|
||||||
|
options:
|
||||||
|
{
|
||||||
|
"address_family": "inet6",
|
||||||
|
"iface": "eth0",
|
||||||
|
"option": "post-up",
|
||||||
|
"state": "present",
|
||||||
|
"value": "XXXX_ipv6"
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"eth0": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "dhcp",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"lo": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "loopback",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,6 @@
|
||||||
|
# The loopback network interface
|
||||||
|
auto lo eth0
|
||||||
|
iface lo inet loopback
|
||||||
|
|
||||||
|
# The primary network interface
|
||||||
|
iface eth0 inet dhcp
|
|
@ -0,0 +1,9 @@
|
||||||
|
fail_json message: Error: interface eth0 not found
|
||||||
|
options:
|
||||||
|
{
|
||||||
|
"address_family": "inet6",
|
||||||
|
"iface": "eth0",
|
||||||
|
"option": "pre-up",
|
||||||
|
"state": "present",
|
||||||
|
"value": "XXXX_ipv6"
|
||||||
|
}
|
|
@ -0,0 +1,18 @@
|
||||||
|
{
|
||||||
|
"eth0": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "dhcp",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"lo": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "loopback",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,58 @@
|
||||||
|
auto aggi
|
||||||
|
iface aggi inet static
|
||||||
|
hwaddress ether 22:44:77:88:D5:96
|
||||||
|
address 10.44.15.196
|
||||||
|
netmask 255.255.255.248
|
||||||
|
mtu 1500
|
||||||
|
slaves int1 int2
|
||||||
|
bond_mode 4
|
||||||
|
bond_miimon 100
|
||||||
|
bond_downdelay 200
|
||||||
|
bond_updelay 200
|
||||||
|
bond_lacp_rate slow
|
||||||
|
bond_xmit_hash_policy layer3+4
|
||||||
|
post-up /sbin/ethtool -K aggi tx off tso off
|
||||||
|
|
||||||
|
auto agge
|
||||||
|
iface agge inet manual
|
||||||
|
|
||||||
|
auto br0
|
||||||
|
iface br0 inet static
|
||||||
|
bridge_ports agge
|
||||||
|
hwaddress ether 22:44:77:88:D5:98
|
||||||
|
address 188.44.133.76
|
||||||
|
netmask 255.255.255.248
|
||||||
|
gateway 188.44.133.75
|
||||||
|
slaves ext1 ext2
|
||||||
|
bond_mode 4
|
||||||
|
bond_miimon 100
|
||||||
|
bond_downdelay 200
|
||||||
|
bond_updelay 200
|
||||||
|
bond_lacp_rate slow
|
||||||
|
bond_xmit_hash_policy layer3+4
|
||||||
|
post-up /sbin/ethtool -K agge tx off tso off
|
||||||
|
|
||||||
|
up route add -net 10.0.0.0/8 gw 10.44.15.117 dev aggi
|
||||||
|
up route add -net 192.168.0.0/16 gw 10.44.15.117 dev aggi
|
||||||
|
up route add -net 188.44.208.0/21 gw 10.44.15.117 dev aggi
|
||||||
|
|
||||||
|
auto int1
|
||||||
|
iface int1 inet manual
|
||||||
|
bond-master aggi
|
||||||
|
|
||||||
|
auto int2
|
||||||
|
iface int2 inet manual
|
||||||
|
bond-master aggi
|
||||||
|
|
||||||
|
auto ext1
|
||||||
|
iface ext1 inet manual
|
||||||
|
bond-master agge
|
||||||
|
|
||||||
|
auto ext2
|
||||||
|
iface ext2 inet manual
|
||||||
|
bond-master agge
|
||||||
|
|
||||||
|
auto lo
|
||||||
|
iface lo inet loopback
|
||||||
|
|
||||||
|
source /etc/network/interfaces.d/*.cfg
|
|
@ -0,0 +1,9 @@
|
||||||
|
fail_json message: Error: interface eth0 not found
|
||||||
|
options:
|
||||||
|
{
|
||||||
|
"address_family": "inet",
|
||||||
|
"iface": "eth0",
|
||||||
|
"option": "post-up",
|
||||||
|
"state": "present",
|
||||||
|
"value": "XXXX_ipv4"
|
||||||
|
}
|
|
@ -0,0 +1,101 @@
|
||||||
|
{
|
||||||
|
"agge": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"aggi": {
|
||||||
|
"address": "10.44.15.196",
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond_downdelay": "200",
|
||||||
|
"bond_lacp_rate": "slow",
|
||||||
|
"bond_miimon": "100",
|
||||||
|
"bond_mode": "4",
|
||||||
|
"bond_updelay": "200",
|
||||||
|
"bond_xmit_hash_policy": "layer3+4",
|
||||||
|
"down": [],
|
||||||
|
"hwaddress": "ether 22:44:77:88:D5:96",
|
||||||
|
"method": "static",
|
||||||
|
"mtu": "1500",
|
||||||
|
"netmask": "255.255.255.248",
|
||||||
|
"post-up": [
|
||||||
|
"/sbin/ethtool -K aggi tx off tso off"
|
||||||
|
],
|
||||||
|
"pre-up": [],
|
||||||
|
"slaves": "int1 int2",
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"br0": {
|
||||||
|
"address": "188.44.133.76",
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond_downdelay": "200",
|
||||||
|
"bond_lacp_rate": "slow",
|
||||||
|
"bond_miimon": "100",
|
||||||
|
"bond_mode": "4",
|
||||||
|
"bond_updelay": "200",
|
||||||
|
"bond_xmit_hash_policy": "layer3+4",
|
||||||
|
"bridge_ports": "agge",
|
||||||
|
"down": [],
|
||||||
|
"gateway": "188.44.133.75",
|
||||||
|
"hwaddress": "ether 22:44:77:88:D5:98",
|
||||||
|
"method": "static",
|
||||||
|
"netmask": "255.255.255.248",
|
||||||
|
"post-up": [
|
||||||
|
"/sbin/ethtool -K agge tx off tso off"
|
||||||
|
],
|
||||||
|
"pre-up": [],
|
||||||
|
"slaves": "ext1 ext2",
|
||||||
|
"up": [
|
||||||
|
"route add -net 10.0.0.0/8 gw 10.44.15.117 dev aggi",
|
||||||
|
"route add -net 192.168.0.0/16 gw 10.44.15.117 dev aggi",
|
||||||
|
"route add -net 188.44.208.0/21 gw 10.44.15.117 dev aggi"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ext1": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond-master": "agge",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"ext2": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond-master": "agge",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"int1": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond-master": "aggi",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"int2": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond-master": "aggi",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"lo": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "loopback",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,58 @@
|
||||||
|
auto aggi
|
||||||
|
iface aggi inet static
|
||||||
|
hwaddress ether 22:44:77:88:D5:96
|
||||||
|
address 10.44.15.196
|
||||||
|
netmask 255.255.255.248
|
||||||
|
mtu 1500
|
||||||
|
slaves int1 int2
|
||||||
|
bond_mode 4
|
||||||
|
bond_miimon 100
|
||||||
|
bond_downdelay 200
|
||||||
|
bond_updelay 200
|
||||||
|
bond_lacp_rate slow
|
||||||
|
bond_xmit_hash_policy layer3+4
|
||||||
|
post-up /sbin/ethtool -K aggi tx off tso off
|
||||||
|
|
||||||
|
auto agge
|
||||||
|
iface agge inet manual
|
||||||
|
|
||||||
|
auto br0
|
||||||
|
iface br0 inet static
|
||||||
|
bridge_ports agge
|
||||||
|
hwaddress ether 22:44:77:88:D5:98
|
||||||
|
address 188.44.133.76
|
||||||
|
netmask 255.255.255.248
|
||||||
|
gateway 188.44.133.75
|
||||||
|
slaves ext1 ext2
|
||||||
|
bond_mode 4
|
||||||
|
bond_miimon 100
|
||||||
|
bond_downdelay 200
|
||||||
|
bond_updelay 200
|
||||||
|
bond_lacp_rate slow
|
||||||
|
bond_xmit_hash_policy layer3+4
|
||||||
|
post-up /sbin/ethtool -K agge tx off tso off
|
||||||
|
|
||||||
|
up route add -net 10.0.0.0/8 gw 10.44.15.117 dev aggi
|
||||||
|
up route add -net 192.168.0.0/16 gw 10.44.15.117 dev aggi
|
||||||
|
up route add -net 188.44.208.0/21 gw 10.44.15.117 dev aggi
|
||||||
|
|
||||||
|
auto int1
|
||||||
|
iface int1 inet manual
|
||||||
|
bond-master aggi
|
||||||
|
|
||||||
|
auto int2
|
||||||
|
iface int2 inet manual
|
||||||
|
bond-master aggi
|
||||||
|
|
||||||
|
auto ext1
|
||||||
|
iface ext1 inet manual
|
||||||
|
bond-master agge
|
||||||
|
|
||||||
|
auto ext2
|
||||||
|
iface ext2 inet manual
|
||||||
|
bond-master agge
|
||||||
|
|
||||||
|
auto lo
|
||||||
|
iface lo inet loopback
|
||||||
|
|
||||||
|
source /etc/network/interfaces.d/*.cfg
|
|
@ -0,0 +1,9 @@
|
||||||
|
fail_json message: Error: interface eth0 not found
|
||||||
|
options:
|
||||||
|
{
|
||||||
|
"address_family": "inet",
|
||||||
|
"iface": "eth0",
|
||||||
|
"option": "pre-up",
|
||||||
|
"state": "present",
|
||||||
|
"value": "XXXX_ipv4"
|
||||||
|
}
|
|
@ -0,0 +1,101 @@
|
||||||
|
{
|
||||||
|
"agge": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"aggi": {
|
||||||
|
"address": "10.44.15.196",
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond_downdelay": "200",
|
||||||
|
"bond_lacp_rate": "slow",
|
||||||
|
"bond_miimon": "100",
|
||||||
|
"bond_mode": "4",
|
||||||
|
"bond_updelay": "200",
|
||||||
|
"bond_xmit_hash_policy": "layer3+4",
|
||||||
|
"down": [],
|
||||||
|
"hwaddress": "ether 22:44:77:88:D5:96",
|
||||||
|
"method": "static",
|
||||||
|
"mtu": "1500",
|
||||||
|
"netmask": "255.255.255.248",
|
||||||
|
"post-up": [
|
||||||
|
"/sbin/ethtool -K aggi tx off tso off"
|
||||||
|
],
|
||||||
|
"pre-up": [],
|
||||||
|
"slaves": "int1 int2",
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"br0": {
|
||||||
|
"address": "188.44.133.76",
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond_downdelay": "200",
|
||||||
|
"bond_lacp_rate": "slow",
|
||||||
|
"bond_miimon": "100",
|
||||||
|
"bond_mode": "4",
|
||||||
|
"bond_updelay": "200",
|
||||||
|
"bond_xmit_hash_policy": "layer3+4",
|
||||||
|
"bridge_ports": "agge",
|
||||||
|
"down": [],
|
||||||
|
"gateway": "188.44.133.75",
|
||||||
|
"hwaddress": "ether 22:44:77:88:D5:98",
|
||||||
|
"method": "static",
|
||||||
|
"netmask": "255.255.255.248",
|
||||||
|
"post-up": [
|
||||||
|
"/sbin/ethtool -K agge tx off tso off"
|
||||||
|
],
|
||||||
|
"pre-up": [],
|
||||||
|
"slaves": "ext1 ext2",
|
||||||
|
"up": [
|
||||||
|
"route add -net 10.0.0.0/8 gw 10.44.15.117 dev aggi",
|
||||||
|
"route add -net 192.168.0.0/16 gw 10.44.15.117 dev aggi",
|
||||||
|
"route add -net 188.44.208.0/21 gw 10.44.15.117 dev aggi"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ext1": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond-master": "agge",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"ext2": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond-master": "agge",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"int1": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond-master": "aggi",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"int2": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond-master": "aggi",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"lo": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "loopback",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,58 @@
|
||||||
|
auto aggi
|
||||||
|
iface aggi inet static
|
||||||
|
hwaddress ether 22:44:77:88:D5:96
|
||||||
|
address 10.44.15.196
|
||||||
|
netmask 255.255.255.248
|
||||||
|
mtu 1500
|
||||||
|
slaves int1 int2
|
||||||
|
bond_mode 4
|
||||||
|
bond_miimon 100
|
||||||
|
bond_downdelay 200
|
||||||
|
bond_updelay 200
|
||||||
|
bond_lacp_rate slow
|
||||||
|
bond_xmit_hash_policy layer3+4
|
||||||
|
post-up /sbin/ethtool -K aggi tx off tso off
|
||||||
|
|
||||||
|
auto agge
|
||||||
|
iface agge inet manual
|
||||||
|
|
||||||
|
auto br0
|
||||||
|
iface br0 inet static
|
||||||
|
bridge_ports agge
|
||||||
|
hwaddress ether 22:44:77:88:D5:98
|
||||||
|
address 188.44.133.76
|
||||||
|
netmask 255.255.255.248
|
||||||
|
gateway 188.44.133.75
|
||||||
|
slaves ext1 ext2
|
||||||
|
bond_mode 4
|
||||||
|
bond_miimon 100
|
||||||
|
bond_downdelay 200
|
||||||
|
bond_updelay 200
|
||||||
|
bond_lacp_rate slow
|
||||||
|
bond_xmit_hash_policy layer3+4
|
||||||
|
post-up /sbin/ethtool -K agge tx off tso off
|
||||||
|
|
||||||
|
up route add -net 10.0.0.0/8 gw 10.44.15.117 dev aggi
|
||||||
|
up route add -net 192.168.0.0/16 gw 10.44.15.117 dev aggi
|
||||||
|
up route add -net 188.44.208.0/21 gw 10.44.15.117 dev aggi
|
||||||
|
|
||||||
|
auto int1
|
||||||
|
iface int1 inet manual
|
||||||
|
bond-master aggi
|
||||||
|
|
||||||
|
auto int2
|
||||||
|
iface int2 inet manual
|
||||||
|
bond-master aggi
|
||||||
|
|
||||||
|
auto ext1
|
||||||
|
iface ext1 inet manual
|
||||||
|
bond-master agge
|
||||||
|
|
||||||
|
auto ext2
|
||||||
|
iface ext2 inet manual
|
||||||
|
bond-master agge
|
||||||
|
|
||||||
|
auto lo
|
||||||
|
iface lo inet loopback
|
||||||
|
|
||||||
|
source /etc/network/interfaces.d/*.cfg
|
|
@ -0,0 +1,9 @@
|
||||||
|
fail_json message: Error: interface eth0 not found
|
||||||
|
options:
|
||||||
|
{
|
||||||
|
"address_family": "inet6",
|
||||||
|
"iface": "eth0",
|
||||||
|
"option": "post-up",
|
||||||
|
"state": "present",
|
||||||
|
"value": "XXXX_ipv6"
|
||||||
|
}
|
|
@ -0,0 +1,101 @@
|
||||||
|
{
|
||||||
|
"agge": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"aggi": {
|
||||||
|
"address": "10.44.15.196",
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond_downdelay": "200",
|
||||||
|
"bond_lacp_rate": "slow",
|
||||||
|
"bond_miimon": "100",
|
||||||
|
"bond_mode": "4",
|
||||||
|
"bond_updelay": "200",
|
||||||
|
"bond_xmit_hash_policy": "layer3+4",
|
||||||
|
"down": [],
|
||||||
|
"hwaddress": "ether 22:44:77:88:D5:96",
|
||||||
|
"method": "static",
|
||||||
|
"mtu": "1500",
|
||||||
|
"netmask": "255.255.255.248",
|
||||||
|
"post-up": [
|
||||||
|
"/sbin/ethtool -K aggi tx off tso off"
|
||||||
|
],
|
||||||
|
"pre-up": [],
|
||||||
|
"slaves": "int1 int2",
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"br0": {
|
||||||
|
"address": "188.44.133.76",
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond_downdelay": "200",
|
||||||
|
"bond_lacp_rate": "slow",
|
||||||
|
"bond_miimon": "100",
|
||||||
|
"bond_mode": "4",
|
||||||
|
"bond_updelay": "200",
|
||||||
|
"bond_xmit_hash_policy": "layer3+4",
|
||||||
|
"bridge_ports": "agge",
|
||||||
|
"down": [],
|
||||||
|
"gateway": "188.44.133.75",
|
||||||
|
"hwaddress": "ether 22:44:77:88:D5:98",
|
||||||
|
"method": "static",
|
||||||
|
"netmask": "255.255.255.248",
|
||||||
|
"post-up": [
|
||||||
|
"/sbin/ethtool -K agge tx off tso off"
|
||||||
|
],
|
||||||
|
"pre-up": [],
|
||||||
|
"slaves": "ext1 ext2",
|
||||||
|
"up": [
|
||||||
|
"route add -net 10.0.0.0/8 gw 10.44.15.117 dev aggi",
|
||||||
|
"route add -net 192.168.0.0/16 gw 10.44.15.117 dev aggi",
|
||||||
|
"route add -net 188.44.208.0/21 gw 10.44.15.117 dev aggi"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ext1": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond-master": "agge",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"ext2": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond-master": "agge",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"int1": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond-master": "aggi",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"int2": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond-master": "aggi",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"lo": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "loopback",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
}
|
||||||
|
}
|
|
@ -0,0 +1,58 @@
|
||||||
|
auto aggi
|
||||||
|
iface aggi inet static
|
||||||
|
hwaddress ether 22:44:77:88:D5:96
|
||||||
|
address 10.44.15.196
|
||||||
|
netmask 255.255.255.248
|
||||||
|
mtu 1500
|
||||||
|
slaves int1 int2
|
||||||
|
bond_mode 4
|
||||||
|
bond_miimon 100
|
||||||
|
bond_downdelay 200
|
||||||
|
bond_updelay 200
|
||||||
|
bond_lacp_rate slow
|
||||||
|
bond_xmit_hash_policy layer3+4
|
||||||
|
post-up /sbin/ethtool -K aggi tx off tso off
|
||||||
|
|
||||||
|
auto agge
|
||||||
|
iface agge inet manual
|
||||||
|
|
||||||
|
auto br0
|
||||||
|
iface br0 inet static
|
||||||
|
bridge_ports agge
|
||||||
|
hwaddress ether 22:44:77:88:D5:98
|
||||||
|
address 188.44.133.76
|
||||||
|
netmask 255.255.255.248
|
||||||
|
gateway 188.44.133.75
|
||||||
|
slaves ext1 ext2
|
||||||
|
bond_mode 4
|
||||||
|
bond_miimon 100
|
||||||
|
bond_downdelay 200
|
||||||
|
bond_updelay 200
|
||||||
|
bond_lacp_rate slow
|
||||||
|
bond_xmit_hash_policy layer3+4
|
||||||
|
post-up /sbin/ethtool -K agge tx off tso off
|
||||||
|
|
||||||
|
up route add -net 10.0.0.0/8 gw 10.44.15.117 dev aggi
|
||||||
|
up route add -net 192.168.0.0/16 gw 10.44.15.117 dev aggi
|
||||||
|
up route add -net 188.44.208.0/21 gw 10.44.15.117 dev aggi
|
||||||
|
|
||||||
|
auto int1
|
||||||
|
iface int1 inet manual
|
||||||
|
bond-master aggi
|
||||||
|
|
||||||
|
auto int2
|
||||||
|
iface int2 inet manual
|
||||||
|
bond-master aggi
|
||||||
|
|
||||||
|
auto ext1
|
||||||
|
iface ext1 inet manual
|
||||||
|
bond-master agge
|
||||||
|
|
||||||
|
auto ext2
|
||||||
|
iface ext2 inet manual
|
||||||
|
bond-master agge
|
||||||
|
|
||||||
|
auto lo
|
||||||
|
iface lo inet loopback
|
||||||
|
|
||||||
|
source /etc/network/interfaces.d/*.cfg
|
|
@ -0,0 +1,9 @@
|
||||||
|
fail_json message: Error: interface eth0 not found
|
||||||
|
options:
|
||||||
|
{
|
||||||
|
"address_family": "inet6",
|
||||||
|
"iface": "eth0",
|
||||||
|
"option": "pre-up",
|
||||||
|
"state": "present",
|
||||||
|
"value": "XXXX_ipv6"
|
||||||
|
}
|
|
@ -0,0 +1,101 @@
|
||||||
|
{
|
||||||
|
"agge": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"aggi": {
|
||||||
|
"address": "10.44.15.196",
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond_downdelay": "200",
|
||||||
|
"bond_lacp_rate": "slow",
|
||||||
|
"bond_miimon": "100",
|
||||||
|
"bond_mode": "4",
|
||||||
|
"bond_updelay": "200",
|
||||||
|
"bond_xmit_hash_policy": "layer3+4",
|
||||||
|
"down": [],
|
||||||
|
"hwaddress": "ether 22:44:77:88:D5:96",
|
||||||
|
"method": "static",
|
||||||
|
"mtu": "1500",
|
||||||
|
"netmask": "255.255.255.248",
|
||||||
|
"post-up": [
|
||||||
|
"/sbin/ethtool -K aggi tx off tso off"
|
||||||
|
],
|
||||||
|
"pre-up": [],
|
||||||
|
"slaves": "int1 int2",
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"br0": {
|
||||||
|
"address": "188.44.133.76",
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond_downdelay": "200",
|
||||||
|
"bond_lacp_rate": "slow",
|
||||||
|
"bond_miimon": "100",
|
||||||
|
"bond_mode": "4",
|
||||||
|
"bond_updelay": "200",
|
||||||
|
"bond_xmit_hash_policy": "layer3+4",
|
||||||
|
"bridge_ports": "agge",
|
||||||
|
"down": [],
|
||||||
|
"gateway": "188.44.133.75",
|
||||||
|
"hwaddress": "ether 22:44:77:88:D5:98",
|
||||||
|
"method": "static",
|
||||||
|
"netmask": "255.255.255.248",
|
||||||
|
"post-up": [
|
||||||
|
"/sbin/ethtool -K agge tx off tso off"
|
||||||
|
],
|
||||||
|
"pre-up": [],
|
||||||
|
"slaves": "ext1 ext2",
|
||||||
|
"up": [
|
||||||
|
"route add -net 10.0.0.0/8 gw 10.44.15.117 dev aggi",
|
||||||
|
"route add -net 192.168.0.0/16 gw 10.44.15.117 dev aggi",
|
||||||
|
"route add -net 188.44.208.0/21 gw 10.44.15.117 dev aggi"
|
||||||
|
]
|
||||||
|
},
|
||||||
|
"ext1": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond-master": "agge",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"ext2": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond-master": "agge",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"int1": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond-master": "aggi",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"int2": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"bond-master": "aggi",
|
||||||
|
"down": [],
|
||||||
|
"method": "manual",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
},
|
||||||
|
"lo": {
|
||||||
|
"address_family": "inet",
|
||||||
|
"down": [],
|
||||||
|
"method": "loopback",
|
||||||
|
"post-up": [],
|
||||||
|
"pre-up": [],
|
||||||
|
"up": []
|
||||||
|
}
|
||||||
|
}
|
|
@ -5,6 +5,8 @@ iface lo inet loopback
|
||||||
# The primary network interface
|
# The primary network interface
|
||||||
iface eth0 inet static
|
iface eth0 inet static
|
||||||
address 192.168.0.1
|
address 192.168.0.1
|
||||||
|
post-up echo configuring ipv4
|
||||||
|
|
||||||
iface eth0 inet6 static
|
iface eth0 inet6 static
|
||||||
address fc00::1
|
address fc00::1
|
||||||
|
post-up echo configuring ipv6
|
||||||
|
|
|
@ -230,7 +230,7 @@ class TestInterfacesFileModule(unittest.TestCase):
|
||||||
# Restore backup
|
# Restore backup
|
||||||
move(backupp, path)
|
move(backupp, path)
|
||||||
|
|
||||||
def test_change_address(self):
|
def test_inet_inet6(self):
|
||||||
testcases = {
|
testcases = {
|
||||||
"change_ipv4": [
|
"change_ipv4": [
|
||||||
{
|
{
|
||||||
|
@ -250,6 +250,42 @@ class TestInterfacesFileModule(unittest.TestCase):
|
||||||
'state': 'present',
|
'state': 'present',
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
|
"change_ipv4_pre_up": [
|
||||||
|
{
|
||||||
|
'iface': 'eth0',
|
||||||
|
'address_family': 'inet',
|
||||||
|
'option': 'pre-up',
|
||||||
|
'value': 'XXXX_ipv4',
|
||||||
|
'state': 'present',
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"change_ipv6_pre_up": [
|
||||||
|
{
|
||||||
|
'iface': 'eth0',
|
||||||
|
'address_family': 'inet6',
|
||||||
|
'option': 'pre-up',
|
||||||
|
'value': 'XXXX_ipv6',
|
||||||
|
'state': 'present',
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"change_ipv4_post_up": [
|
||||||
|
{
|
||||||
|
'iface': 'eth0',
|
||||||
|
'address_family': 'inet',
|
||||||
|
'option': 'post-up',
|
||||||
|
'value': 'XXXX_ipv4',
|
||||||
|
'state': 'present',
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"change_ipv6_post_up": [
|
||||||
|
{
|
||||||
|
'iface': 'eth0',
|
||||||
|
'address_family': 'inet6',
|
||||||
|
'option': 'post-up',
|
||||||
|
'value': 'XXXX_ipv6',
|
||||||
|
'state': 'present',
|
||||||
|
}
|
||||||
|
],
|
||||||
}
|
}
|
||||||
for testname, options_list in testcases.items():
|
for testname, options_list in testcases.items():
|
||||||
for testfile in self.getTestFiles():
|
for testfile in self.getTestFiles():
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue