diff options
author | Andrew Yourtchenko <ayourtch@gmail.com> | 2018-03-23 15:23:15 +0100 |
---|---|---|
committer | Chris Luke <chris_luke@comcast.com> | 2018-03-23 18:18:41 +0000 |
commit | 563a8531cbc3e7c222e3e4841637b94b65637caa (patch) | |
tree | ce981f0cc2c2454a9598efaed5ba6cd4fd2721a9 /test | |
parent | 4585eb86c54afd21d5aa264e947020a041656064 (diff) |
acl-plugin: improvements in 'show acl-plugin macip acl' CLI
- allow to optionally specify the specific MACIP ACL index:
'show acl-plugin macip acl [index N]'
- after showing the MACIP ACL, show the sw_if_index of
interface(s) where it is applied.
Also, add some executions of this debug commands
to the MACIP test case for easy verification.
Change-Id: I56cf8272abc20b1b2581b60d528d27a70d186b18
Signed-off-by: Andrew Yourtchenko <ayourtch@gmail.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/test_acl_plugin_macip.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/test_acl_plugin_macip.py b/test/test_acl_plugin_macip.py index b009fb4598b..a8df833cd26 100644 --- a/test/test_acl_plugin_macip.py +++ b/test/test_acl_plugin_macip.py @@ -1115,6 +1115,12 @@ class TestMACIP(MethodHolder): self.assertEqual(reply.acls[sw_if_index1], 0) self.assertEqual(reply.acls[sw_if_index2], 1) self.assertEqual(reply.acls[sw_if_index3], 1) + self.logger.info("MACIP ACL on multiple interfaces:") + self.logger.info(self.vapi.ppcli("sh acl-plugin macip acl")) + self.logger.info(self.vapi.ppcli("sh acl-plugin macip acl index 1234")) + self.logger.info(self.vapi.ppcli("sh acl-plugin macip acl index 1")) + self.logger.info(self.vapi.ppcli("sh acl-plugin macip acl index 0")) + self.logger.info(self.vapi.ppcli("sh acl-plugin macip interface")) intf[2].remove_vpp_config() intf[1].remove_vpp_config() |