diff options
author | Juraj Sloboda <jsloboda@cisco.com> | 2018-01-15 10:39:21 +0100 |
---|---|---|
committer | Ole Trøan <otroan@employees.org> | 2018-03-16 10:37:18 +0000 |
commit | 4b9669dc116f6c9be5ef124e4aff7b201404b6ea (patch) | |
tree | 46c6cfe298640f36126693ab4196999adf959c32 /test/vpp_papi_provider.py | |
parent | e1b819efac7f8434f17d0482b631c2450e3dd5bb (diff) |
IPv6 ND Router discovery data plane (VPP-1095)
Add API call to send Router Solicitation messages.
Save info from incoming Router Advertisement messages and notify listeners.
Change-Id: Ie518b5492231e03291bd4c4280be4727bfecab46
Signed-off-by: Juraj Sloboda <jsloboda@cisco.com>
Diffstat (limited to 'test/vpp_papi_provider.py')
-rw-r--r-- | test/vpp_papi_provider.py | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py index 22c6a0d4597..8fc0bfdae85 100644 --- a/test/vpp_papi_provider.py +++ b/test/vpp_papi_provider.py @@ -466,6 +466,20 @@ class VppPapiProvider(object): 'address': address, 'pid': os.getpid(), }) + def want_ip6_ra_events(self, enable_disable=1): + return self.api(self.papi.want_ip6_ra_events, + {'enable_disable': enable_disable, + 'pid': os.getpid(), }) + + def ip6nd_send_router_solicitation(self, sw_if_index, irt=1, mrt=120, + mrc=0, mrd=0): + return self.api(self.papi.ip6nd_send_router_solicitation, + {'irt': irt, + 'mrt': mrt, + 'mrc': mrc, + 'mrd': mrd, + 'sw_if_index': sw_if_index}) + def want_macs_learn_events(self, enable_disable=1, scan_delay=0, max_macs_in_event=0, learn_limit=0): return self.api(self.papi.want_l2_macs_events, |