Skip to content

Commit 91794f9

Browse files
Test that protocol 51 is matched with meta l4proto
Signed-off-by: Brad House <bhouse@nexthop.ai>
1 parent 60ec7d4 commit 91794f9

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎systemvm/test/TestCsAclIpv6.py‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,14 +60,14 @@ def test_protocol_number_rule_uses_meta_l4proto(self):
6060

6161
def test_upper_layer_protocol_numbers_use_meta_l4proto(self):
6262
config = FakeConfig()
63-
rules = [{"type": "protocol", "protocol": p, "cidr": "2001:db8::/64", "allowed": True} for p in (6, 17, 58, 132)]
63+
rules = [{"type": "protocol", "protocol": p, "cidr": "2001:db8::/64", "allowed": True} for p in (6, 17, 51, 58, 132)]
6464
obj = {"device": "eth3", "nic_ip": "10.1.1.1", "nic_netmask": "24", "nic_ip6_cidr": "fd00:1::/64",
6565
"ingress_rules": rules, "egress_rules": []}
6666
acl = CsAcl.AclDevice(obj, config)
6767
acl.create()
6868

6969
ingress = [r['rule'] for r in config.ipv6_acl if r.get('chain') == "eth3_ingress_policy" and 'rule' in r]
70-
for p in (6, 17, 58, 132):
70+
for p in (6, 17, 51, 58, 132):
7171
self.assertIn("ip6 saddr 2001:db8::/64 meta l4proto %d accept" % p, ingress)
7272

7373
def test_extension_header_number_rule(self):

0 commit comments

Comments
 (0)