summaryrefslogtreecommitdiff
path: root/tests/integration/targets/vyos_l3_interfaces/vars/main.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'tests/integration/targets/vyos_l3_interfaces/vars/main.yaml')
-rw-r--r--tests/integration/targets/vyos_l3_interfaces/vars/main.yaml118
1 files changed, 49 insertions, 69 deletions
diff --git a/tests/integration/targets/vyos_l3_interfaces/vars/main.yaml b/tests/integration/targets/vyos_l3_interfaces/vars/main.yaml
index 1241763..ee329d3 100644
--- a/tests/integration/targets/vyos_l3_interfaces/vars/main.yaml
+++ b/tests/integration/targets/vyos_l3_interfaces/vars/main.yaml
@@ -1,82 +1,68 @@
---
merged:
before:
- - name: "eth0"
+ - name: eth0
ipv4:
- - address: "dhcp"
-
- - name: "eth1"
-
- - name: "eth2"
-
+ - address: dhcp
+ - name: eth1
+ - name: eth2
commands:
- - "set interfaces ethernet eth1 address '192.0.2.10/24'"
- - "set interfaces ethernet eth1 address '2001:db8::10/32'"
- - "set interfaces ethernet eth2 address '198.51.100.10/24'"
- - "set interfaces ethernet eth2 vif 101 address '198.51.100.130/25'"
- - "set interfaces ethernet eth2 vif 101 address '2001:db8::20/32'"
-
+ - set interfaces ethernet eth1 address '192.0.2.10/24'
+ - set interfaces ethernet eth1 address '2001:db8::10/32'
+ - set interfaces ethernet eth2 address '198.51.100.10/24'
+ - set interfaces ethernet eth2 vif 101 address '198.51.100.130/25'
+ - set interfaces ethernet eth2 vif 101 address '2001:db8::20/32'
after:
- - name: "eth0"
+ - name: eth0
ipv4:
- - address: "dhcp"
-
- - name: "eth1"
+ - address: dhcp
+ - name: eth1
ipv4:
- - address: "192.0.2.10/24"
+ - address: 192.0.2.10/24
ipv6:
- - address: "2001:db8::10/32"
-
- - name: "eth2"
+ - address: 2001:db8::10/32
+ - name: eth2
ipv4:
- - address: "198.51.100.10/24"
+ - address: 198.51.100.10/24
vifs:
- vlan_id: 101
ipv4:
- - address: "198.51.100.130/25"
+ - address: 198.51.100.130/25
ipv6:
- - address: "2001:db8::20/32"
-
+ - address: 2001:db8::20/32
populate:
- - name: "eth1"
+ - name: eth1
ipv4:
- - address: "192.0.2.14/24"
-
- - name: "eth2"
+ - address: 192.0.2.14/24
+ - name: eth2
ipv4:
- - address: "192.0.2.10/24"
- - address: "192.0.2.11/24"
+ - address: 192.0.2.10/24
+ - address: 192.0.2.11/24
ipv6:
- - address: "2001:db8::10/32"
- - address: "2001:db8::12/32"
-
- - name: "eth0"
+ - address: 2001:db8::10/32
+ - address: 2001:db8::12/32
+ - name: eth0
ipv4:
- - address: "dhcp"
-
+ - address: dhcp
replaced:
commands:
- - "delete interfaces ethernet eth2 address '192.0.2.10/24'"
- - "delete interfaces ethernet eth2 address '192.0.2.11/24'"
- - "delete interfaces ethernet eth2 address '2001:db8::10/32'"
- - "delete interfaces ethernet eth2 address '2001:db8::12/32'"
- - "set interfaces ethernet eth2 address '2001:db8::11/32'"
- - "delete interfaces ethernet eth1 address '192.0.2.14/24'"
- - "set interfaces ethernet eth1 address '192.0.2.19/24'"
-
+ - delete interfaces ethernet eth2 address '192.0.2.10/24'
+ - delete interfaces ethernet eth2 address '192.0.2.11/24'
+ - delete interfaces ethernet eth2 address '2001:db8::10/32'
+ - delete interfaces ethernet eth2 address '2001:db8::12/32'
+ - set interfaces ethernet eth2 address '2001:db8::11/32'
+ - delete interfaces ethernet eth1 address '192.0.2.14/24'
+ - set interfaces ethernet eth1 address '192.0.2.19/24'
after:
- - name: "eth2"
+ - name: eth2
ipv6:
- - address: "2001:db8::11/32"
-
- - name: "eth1"
+ - address: 2001:db8::11/32
+ - name: eth1
ipv4:
- - address: "192.0.2.19/24"
-
- - name: "eth0"
+ - address: 192.0.2.19/24
+ - name: eth0
ipv4:
- - address: "dhcp"
-
+ - address: dhcp
overridden:
commands:
- delete interfaces ethernet eth1 address '192.0.2.14/24'
@@ -85,18 +71,14 @@ overridden:
- delete interfaces ethernet eth2 address '192.0.2.11/24'
- delete interfaces ethernet eth2 address '2001:db8::10/32'
- delete interfaces ethernet eth2 address '2001:db8::12/32'
-
after:
- - name: "eth0"
+ - name: eth0
ipv4:
- - address: "dhcp"
-
- - name: "eth1"
+ - address: dhcp
+ - name: eth1
ipv4:
- - address: "192.0.2.15/24"
-
- - name: "eth2"
-
+ - address: 192.0.2.15/24
+ - name: eth2
deleted:
commands:
- delete interfaces ethernet eth1 address '192.0.2.14/24'
@@ -105,10 +87,8 @@ deleted:
- delete interfaces ethernet eth2 address '2001:db8::10/32'
- delete interfaces ethernet eth2 address '2001:db8::12/32'
after:
- - name: "eth0"
+ - name: eth0
ipv4:
- - address: "dhcp"
-
- - name: "eth1"
-
- - name: "eth2"
+ - address: dhcp
+ - name: eth1
+ - name: eth2