Skip to content

Commit 17aa216

Browse files
committed
Added unique source and destination IPV6 fields for ACL rules. Ref CSP CS00012257197
1 parent 6f5ecfd commit 17aa216

4 files changed

Lines changed: 12 additions & 44 deletions

File tree

tests/acl/templates/acltb_v6_test_rules.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"ip": {
3333
"config": {
34-
"destination-ip-address": "20c0:a800::4/128"
34+
"destination-ip-address": "20c0:a800::1/128"
3535
}
3636
}
3737
},
@@ -46,7 +46,7 @@
4646
},
4747
"ip": {
4848
"config": {
49-
"destination-ip-address": "20c1:cb50::4/128"
49+
"destination-ip-address": "20c1:cb50::1/128"
5050
}
5151
}
5252
},
@@ -228,7 +228,7 @@
228228
},
229229
"ip": {
230230
"config": {
231-
"destination-ip-address": "20c0:a800::8/128"
231+
"destination-ip-address": "20c0:a800::9/128"
232232
}
233233
}
234234
},
@@ -243,7 +243,7 @@
243243
},
244244
"ip": {
245245
"config": {
246-
"destination-ip-address": "20c1:e2f0::8/128"
246+
"destination-ip-address": "20c1:e2f0::9/128"
247247
}
248248
}
249249
},

tests/acl/templates/acltb_v6_test_rules_part_2.j2

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
},
3232
"ip": {
3333
"config": {
34-
"destination-ip-address": "20c0:a800::4/128"
34+
"destination-ip-address": "20c0:a800::1/128"
3535
}
3636
}
3737
},
@@ -46,7 +46,7 @@
4646
},
4747
"ip": {
4848
"config": {
49-
"destination-ip-address": "20c1:cb50::4/128"
49+
"destination-ip-address": "20c1:cb50::1/128"
5050
}
5151
}
5252
},
@@ -228,7 +228,7 @@
228228
},
229229
"ip": {
230230
"config": {
231-
"destination-ip-address": "20c0:a800::8/128"
231+
"destination-ip-address": "20c0:a800::9/128"
232232
}
233233
}
234234
},
@@ -243,7 +243,7 @@
243243
},
244244
"ip": {
245245
"config": {
246-
"destination-ip-address": "20c1:e2f0::8/128"
246+
"destination-ip-address": "20c1:e2f0::9/128"
247247
}
248248
}
249249
},

tests/acl/test_acl.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@
6161
}
6262
DOWNSTREAM_IP_TO_ALLOW = {
6363
"ipv4": "192.168.0.252",
64-
"ipv6": "20c0:a800::4"
64+
"ipv6": "20c0:a800::1"
6565
}
6666
DOWNSTREAM_IP_TO_BLOCK = {
6767
"ipv4": "192.168.0.251",
68-
"ipv6": "20c0:a800::8"
68+
"ipv6": "20c0:a800::9"
6969
}
7070

7171
DOWNSTREAM_IP_PORT_MAP = {}
@@ -76,11 +76,11 @@
7676
}
7777
UPSTREAM_IP_TO_ALLOW = {
7878
"ipv4": "193.191.32.1",
79-
"ipv6": "20c1:cb50::4"
79+
"ipv6": "20c1:cb50::1"
8080
}
8181
UPSTREAM_IP_TO_BLOCK = {
8282
"ipv4": "193.221.112.1",
83-
"ipv6": "20c1:e2f0::8"
83+
"ipv6": "20c1:e2f0::9"
8484
}
8585

8686
VLAN_BASE_MAC_PATTERN = "72060001{:04}"

tests/common/plugins/conditional_mark/tests_mark_conditions.yaml

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -15,38 +15,6 @@ acl/test_acl_outer_vlan.py:
1515
conditions:
1616
- "asic_type in ['cisco-8000']"
1717

18-
acl/test_acl.py::TestBasicAcl::test_icmp_match_forwarded:
19-
xfail:
20-
# Ignoring failure because of limitation that DNX chipset doesn't support both IPv6 src and dst address in the same rule
21-
# BRCM CSP CS00012257197
22-
reason: "DNX chipset doesn't support both IPv6 src and dst address in the same ACL rule"
23-
conditions:
24-
- "platform in ['x86_64-nokia_ixr7250e_36x400g-r0']"
25-
26-
acl/test_acl.py::TestIncrementalAcl::test_icmp_match_forwarded:
27-
xfail:
28-
# Ignoring failure because of limitation that DNX chipset doesn't support both IPv6 src and dst address in the same rule
29-
# BRCM CSP CS00012257197
30-
reason: "DNX chipset doesn't support both IPv6 src and dst address in the same ACL rule"
31-
conditions:
32-
- "platform in ['x86_64-nokia_ixr7250e_36x400g-r0']"
33-
34-
acl/test_acl.py::TestAclWithReboot::test_icmp_match_forwarded:
35-
xfail:
36-
# Ignoring failure because of limitation that DNX chipset doesn't support both IPv6 src and dst address in the same rule
37-
# BRCM CSP CS00012257197
38-
reason: "DNX chipset doesn't support both IPv6 src and dst address in the same ACL rule"
39-
conditions:
40-
- "platform in ['x86_64-nokia_ixr7250e_36x400g-r0']"
41-
42-
acl/test_acl.py::TestAclWithPortToggle::test_icmp_match_forwarded:
43-
xfail:
44-
# Ignoring failure because of limitation that DNX chipset doesn't support both IPv6 src and dst address in the same rule
45-
# BRCM CSP CS00012257197
46-
reason: "DNX chipset doesn't support both IPv6 src and dst address in the same ACL rule"
47-
conditions:
48-
- "platform in ['x86_64-nokia_ixr7250e_36x400g-r0']"
49-
5018
#######################################
5119
##### arp #####
5220
#######################################

0 commit comments

Comments
 (0)