Skip to content

Commit 5655cfa

Browse files
committed
Use ACLs to remove router from LAN, such that ipv6 return packets can reach hosts via R2 (ECMP)
1 parent 67953b5 commit 5655cfa

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

tests/integration/gateway/03-vrrp-ipv6.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -42,11 +42,11 @@ links:
4242

4343
validate:
4444
r2_eth1_down:
45-
description: Remove R2 from the VRRP LAN
45+
description: Put ACL to remove R2 from the VRRP LAN
4646
nodes: [ r2 ]
4747
config:
48-
template: ifdown
49-
variable.ifstate: 'down'
48+
template: acl
49+
variable.acl: 'drop'
5050
pass: R2 has been disconnected from the VRRP LAN
5151
stop_on_error: True
5252
ra:
@@ -65,8 +65,8 @@ validate:
6565
description: Add R2 to the VRRP LAN
6666
nodes: [ r2 ]
6767
config:
68-
template: ifdown
69-
variable.ifstate: 'up'
68+
template: acl
69+
variable.acl: 'allow'
7070
pass: R2 has been reconnected to the VRRP LAN
7171
stop_on_error: True
7272
r2_vrrp_backup:

tests/integration/gateway/acl/eos.j2

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
ipv6 access-list drop-ipv6
2+
10 deny ipv6 any any
3+
!
4+
5+
ipv6 access-list drop-vrrp
6+
10 deny 112 any any
7+
!
8+
9+
interface {{ interfaces[0].ifname }}
10+
{{ 'no ' if acl|default('allow') == 'allow' else '' }}ipv6 access-group drop-ipv6 in
11+
{{ 'no ' if acl|default('allow') == 'allow' else '' }}ipv6 access-group drop-vrrp out

0 commit comments

Comments
 (0)