diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/test_neighbor.py | 4 | ||||
-rw-r--r-- | test/vpp_papi_provider.py | 4 |
2 files changed, 8 insertions, 0 deletions
diff --git a/test/test_neighbor.py b/test/test_neighbor.py index c161eb8881c..9d91f031571 100644 --- a/test/test_neighbor.py +++ b/test/test_neighbor.py @@ -296,6 +296,10 @@ class ARPTestCase(VppTestCase): # self.pg2.set_unnumbered(self.pg1.sw_if_index) + unnum = self.vapi.ip_unnumbered_dump() + self.assertEqual(unnum[0].ip_sw_if_index, self.pg1.sw_if_index) + self.assertEqual(unnum[0].sw_if_index, self.pg2.sw_if_index) + # # We should respond to ARP requests for the unnumbered to address # once an attached route to the source is known diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py index 14cb72727b6..bd4787d3e9e 100644 --- a/test/vpp_papi_provider.py +++ b/test/vpp_papi_provider.py @@ -275,6 +275,10 @@ class VppPapiProvider(object): 'unnumbered_sw_if_index': sw_if_index, 'is_add': is_add}) + def ip_unnumbered_dump(self, sw_if_index=0xffffffff): + return self.api(self.papi.ip_unnumbered_dump, + {'sw_if_index': sw_if_index}) + def sw_interface_enable_disable_mpls(self, sw_if_index, is_enable=1): """ |