ansible/test/integration/targets/vyos_static_routes/vars/main.yaml
Rohit 9eb7709c61
Vyos static route module added (#62193)
* Vyos static route module added

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>

* sanity fixes

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>

* empty config traceback fix

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>

* sanity check fix

* model specific changes and SI test cases updated

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>

* new state changes and SI test cases updated

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>

* sanity fixes

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>

* UT cases added

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>

* replaced operation fix

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>

* review comments incorporated

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>

* shippable fix

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>

* sanity fix

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>

* delete opr updated

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>

* comments incorporated

Signed-off-by: rohitthakur2590 <rohitthakur2590@outlook.com>
2020-02-18 07:32:26 -05:00

163 lines
5.1 KiB
YAML

---
merged:
before: []
commands:
- "set protocols static route 192.0.2.32/28 next-hop '192.0.2.10'"
- "set protocols static route 192.0.2.32/28 next-hop '192.0.2.9'"
- "set protocols static route 192.0.2.32/28 blackhole"
- "set protocols static route 192.0.2.32/28"
- "set protocols static route6 2001:db8:1000::/36 next-hop '2001:db8:2000:2::1'"
- "set protocols static route6 2001:db8:1000::/36 next-hop '2001:db8:2000:2::2'"
- "set protocols static route6 2001:db8:1000::/36 blackhole distance '2'"
- "set protocols static route6 2001:db8:1000::/36"
after:
- address_families:
- afi: 'ipv4'
routes:
- dest: '192.0.2.32/28'
blackhole_config:
type: 'blackhole'
next_hops:
- forward_router_address: '192.0.2.9'
- forward_router_address: '192.0.2.10'
- afi: 'ipv6'
routes:
- dest: '2001:db8:1000::/36'
blackhole_config:
distance: 2
next_hops:
- forward_router_address: '2001:db8:2000:2::1'
- forward_router_address: '2001:db8:2000:2::2'
populate:
- address_families:
- afi: 'ipv4'
routes:
- dest: '192.0.2.32/28'
blackhole_config:
type: 'blackhole'
next_hops:
- forward_router_address: '192.0.2.9'
- forward_router_address: '192.0.2.10'
- afi: 'ipv6'
routes:
- dest: '2001:db8:1000::/36'
blackhole_config:
distance: 2
next_hops:
- forward_router_address: '2001:db8:2000:2::1'
- forward_router_address: '2001:db8:2000:2::2'
replaced:
commands:
- "delete protocols static route 192.0.2.32/28 next-hop '192.0.2.10'"
- "set protocols static route 192.0.2.32/28 next-hop '192.0.2.7'"
- "set protocols static route 192.0.2.32/28 next-hop '192.0.2.8'"
- "set protocols static route 192.0.2.32/28 blackhole distance '2'"
after:
- address_families:
- afi: 'ipv4'
routes:
- dest: 192.0.2.32/28
blackhole_config:
distance: 2
next_hops:
- forward_router_address: 192.0.2.7
- forward_router_address: 192.0.2.8
- forward_router_address: 192.0.2.9
- afi: 'ipv6'
routes:
- dest: '2001:db8:1000::/36'
blackhole_config:
distance: 2
next_hops:
- forward_router_address: '2001:db8:2000:2::1'
- forward_router_address: '2001:db8:2000:2::2'
overridden:
commands:
- "delete protocols static route 192.0.2.32/28"
- "delete protocols static route6 2001:db8:1000::/36"
- "set protocols static route 198.0.2.48/28 next-hop '192.0.2.18'"
- "set protocols static route 198.0.2.48/28"
after:
- address_families:
- afi: 'ipv4'
routes:
- dest: 198.0.2.48/28
next_hops:
- forward_router_address: '192.0.2.18'
rendered:
commands:
- "set protocols static route 192.0.2.32/28 next-hop '192.0.2.10'"
- "set protocols static route 192.0.2.32/28 next-hop '192.0.2.9'"
- "set protocols static route 192.0.2.32/28 blackhole"
- "set protocols static route 192.0.2.32/28"
- "set protocols static route6 2001:db8:1000::/36 next-hop '2001:db8:2000:2::1'"
- "set protocols static route6 2001:db8:1000::/36 next-hop '2001:db8:2000:2::2'"
- "set protocols static route6 2001:db8:1000::/36 blackhole distance '2'"
- "set protocols static route6 2001:db8:1000::/36"
deleted_dest:
commands:
- "delete protocols static route 192.0.2.32/28"
- "delete protocols static route6 2001:db8:1000::/36"
after: []
deleted_nh:
commands:
- "delete protocols static route 192.0.2.32/28 next-hop '192.0.2.9'"
- "delete protocols static route6 2001:db8:1000::/36 next-hop '2001:db8:2000:2::1'"
after:
- address_families:
- afi: 'ipv4'
routes:
- dest: '192.0.2.32/28'
blackhole_config:
type: 'blackhole'
next_hops:
- forward_router_address: '192.0.2.10'
- afi: 'ipv6'
routes:
- dest: '2001:db8:1000::/36'
blackhole_config:
distance: 2
next_hops:
- forward_router_address: '2001:db8:2000:2::2'
deleted_afi_all:
commands:
- "delete protocols static route"
- "delete protocols static route6"
after: []
round_trip:
after:
- address_families:
- afi: 'ipv4'
routes:
- dest: 192.0.2.32/28
blackhole_config:
distance: 2
next_hops:
- forward_router_address: '192.0.2.7'
- forward_router_address: '192.0.2.8'
- forward_router_address: '192.0.2.9'
- forward_router_address: '192.0.2.10'
- afi: 'ipv6'
routes:
- dest: '2001:db8:1000::/36'
blackhole_config:
distance: 2
next_hops:
- forward_router_address: '2001:db8:2000:2::1'
- forward_router_address: '2001:db8:2000:2::2'