aboutsummaryrefslogtreecommitdiffstats
path: root/test/vpp_papi_provider.py
diff options
context:
space:
mode:
authorNeale Ranns <nranns@cisco.com>2017-07-18 08:23:32 -0700
committerDamjan Marion <dmarion.lists@gmail.com>2017-07-18 19:01:00 +0000
commita2fbf6ba0e2553687f56d9a9fb63e2972bdb26c6 (patch)
treebdb68e1865ab09e55b4a906614a33afd90394114 /test/vpp_papi_provider.py
parent2c0a4f407f565d8dd33ff3a9fada346860d30ad2 (diff)
DHCP client - remove interface address when DHCP de-configured
Change-Id: I63c59e3c13859b51999d283774f7783ef0a6a5ed Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/vpp_papi_provider.py')
-rw-r--r--test/vpp_papi_provider.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py
index 51c359e8bd1..31eadad87a9 100644
--- a/test/vpp_papi_provider.py
+++ b/test/vpp_papi_provider.py
@@ -1755,6 +1755,21 @@ class VppPapiProvider(object):
'oui': oui,
})
+ def dhcp_client(self,
+ sw_if_index,
+ hostname,
+ is_add=1,
+ want_dhcp_events=0):
+ return self.api(
+ self.papi.dhcp_client_config,
+ {
+ 'sw_if_index': sw_if_index,
+ 'hostname': hostname,
+ 'is_add': is_add,
+ 'want_dhcp_event': want_dhcp_events,
+ 'pid': os.getpid(),
+ })
+
def ip_mroute_add_del(self,
src_address,
grp_address,