aboutsummaryrefslogtreecommitdiffstats
path: root/test/test_ip4.py
diff options
context:
space:
mode:
authorNeale Ranns <neale@graphiant.com>2022-03-18 13:05:09 +0000
committerNeale Ranns <neale@graphiant.com>2022-03-24 13:56:43 +0000
commitfbc633f5542be4b0b85963f7dcba9ab143c61d62 (patch)
tree6d5d2223878661230f9e09f18f5bada574f0bc18 /test/test_ip4.py
parentbb498ccb1c5d5448fdcb106cacc1ef1bfbc69e16 (diff)
mpls: Set the MTU field in the frag-needed ICMP when doing MPLS fragmentation
Type: fix The reported MTU should include the MPLS label overhead Signed-off-by: Neale Ranns <neale@graphiant.com> Change-Id: I3df6d2e0b13f49701e187a766a157498dcaafbc0
Diffstat (limited to 'test/test_ip4.py')
-rw-r--r--test/test_ip4.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/test/test_ip4.py b/test/test_ip4.py
index 873a38a22be..fb9b8faa769 100644
--- a/test/test_ip4.py
+++ b/test/test_ip4.py
@@ -1977,6 +1977,7 @@ class TestIPInput(VppTestCase):
self.assertEqual(icmptypes[icmp.type], "dest-unreach")
self.assertEqual(icmpcodes[icmp.type][icmp.code],
"fragmentation-needed")
+ self.assertEqual(icmp.nexthopmtu, 1500)
self.assertEqual(icmp.src, self.pg0.remote_ip4)
self.assertEqual(icmp.dst, self.pg1.remote_ip4)