diff options
author | pcamaril <pcamaril@cisco.com> | 2020-02-04 08:36:51 +0100 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2020-02-11 16:25:41 +0000 |
commit | 30e7671c85087b5781a34bde45ef3846f5de8c17 (patch) | |
tree | 532f76c9d61e8ed9a0967cd0bccaf552279f7dbe /src/plugins/srv6-as/test/test_srv6_as.py | |
parent | 619179cfcdb087acb0864d273c4fbd3b7396974c (diff) |
sr: update NH value for Ethernet payloads
Upon encapsulation of L2 frames, IETF has replaced the NextHeader value from 59 (IPv6 No Next Header) to 143 (Ethernet).
https://www.iana.org/assignments/protocol-numbers/protocol-numbers.xhtml
Type: fix
Signed-off-by: pcamaril <pcamaril@cisco.com>
Change-Id: I88aa5590c81d16700ff7a0bbe6337e113179496e
Signed-off-by: pcamaril <pcamaril@cisco.com>
Diffstat (limited to 'src/plugins/srv6-as/test/test_srv6_as.py')
-rwxr-xr-x | src/plugins/srv6-as/test/test_srv6_as.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/plugins/srv6-as/test/test_srv6_as.py b/src/plugins/srv6-as/test/test_srv6_as.py index 9e8e4252cc7..eec44e31ee5 100755 --- a/src/plugins/srv6-as/test/test_srv6_as.py +++ b/src/plugins/srv6-as/test/test_srv6_as.py @@ -523,8 +523,8 @@ class TestSRv6(VppTestCase): self.assertEqual(rx_srh.segleft, len(tx_seglist)-1) # segleft should be equal to lastentry self.assertEqual(rx_srh.segleft, rx_srh.lastentry) - # nh should be "No Next Header" (59) - self.assertEqual(rx_srh.nh, 59) + # nh should be "No Next Header" (143) + self.assertEqual(rx_srh.nh, 143) # get payload payload = rx_srh.payload else: @@ -796,7 +796,7 @@ class TestSRv6(VppTestCase): p = (IPv6(src='1234::1', dst=sidlist[segleft]) / IPv6ExtHdrSegmentRouting(addresses=sidlist, - segleft=segleft, nh=59) / + segleft=segleft, nh=143) / eth) return p |