X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=test%2Ftest_neighbor.py;fp=test%2Ftest_neighbor.py;h=f69a2634686f7aef996789978deee917358c3247;hb=7184571810d750001583763c11885ce6401e1c28;hp=241479a1d30a5017bc35054cd6158dab1b5bc58a;hpb=791c2061aedce4e7229be5bad6acee0a6e91e1a9;p=vpp.git diff --git a/test/test_neighbor.py b/test/test_neighbor.py index 241479a1d30..f69a2634686 100644 --- a/test/test_neighbor.py +++ b/test/test_neighbor.py @@ -82,6 +82,7 @@ class ARPTestCase(VppTestCase): ether = rx[Ether] self.assertEqual(ether.dst, "ff:ff:ff:ff:ff:ff") self.assertEqual(ether.src, smac) + self.assertEqual(ether.type, 0x0806) arp = rx[ARP] self.assertEqual(arp.hwtype, 1) @@ -98,6 +99,7 @@ class ARPTestCase(VppTestCase): ether = rx[Ether] self.assertEqual(ether.dst, dmac) self.assertEqual(ether.src, smac) + self.assertEqual(ether.type, 0x0806) arp = rx[ARP] self.assertEqual(arp.hwtype, 1) @@ -132,6 +134,7 @@ class ARPTestCase(VppTestCase): ether = rx[Ether] self.assertEqual(ether.dst, dmac) self.assertEqual(ether.src, smac) + self.assertEqual(ether.type, 0x0800) ip = rx[IP] self.assertEqual(ip.src, sip) @@ -141,6 +144,7 @@ class ARPTestCase(VppTestCase): ether = rx[Ether] self.assertEqual(ether.dst, dmac) self.assertEqual(ether.src, smac) + self.assertEqual(ether.type, 0x8847) mpls = rx[MPLS] self.assertTrue(mpls.label, label)