diff options
author | Neale Ranns <nranns@cisco.com> | 2017-01-13 07:57:46 -0800 |
---|---|---|
committer | Neale Ranns <nranns@cisco.com> | 2017-01-26 05:14:35 -0800 |
commit | fca0c242e4edfdb05231ef18d60c14273067ff0a (patch) | |
tree | 440c9952bd79e9c58699eb787a619803c5fa49fa /test/vpp_papi_provider.py | |
parent | dc90d423a547f3f948953e427b681f2834c8a9d6 (diff) |
DHCPv[46] proxy tests
Change-Id: I6aaf9c602cd515ed9d4416d286f9191d048c1a87
Signed-off-by: Neale Ranns <nranns@cisco.com>
Diffstat (limited to 'test/vpp_papi_provider.py')
-rw-r--r-- | test/vpp_papi_provider.py | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/test/vpp_papi_provider.py b/test/vpp_papi_provider.py index 4f2cea8b788..1b2895e9541 100644 --- a/test/vpp_papi_provider.py +++ b/test/vpp_papi_provider.py @@ -1142,3 +1142,39 @@ class VppPapiProvider(object): 'template_interval': template_interval, 'udp_checksum': udp_checksum, }) + + def dhcp_proxy_config(self, + dhcp_server, + dhcp_src_address, + rx_table_id=0, + server_table_id=0, + is_add=1, + is_ipv6=0, + insert_circuit_id=0): + return self.api( + self.papi.dhcp_proxy_config_2, + { + 'rx_vrf_id': rx_table_id, + 'server_vrf_id': server_table_id, + 'is_ipv6': is_ipv6, + 'is_add': is_add, + 'insert_circuit_id': insert_circuit_id, + 'dhcp_server': dhcp_server, + 'dhcp_src_address': dhcp_src_address, + }) + + def dhcp_proxy_set_vss(self, + table_id, + fib_id, + oui, + is_add=1, + is_ip6=0): + return self.api( + self.papi.dhcp_proxy_set_vss, + { + 'tbl_id': table_id, + 'fib_id': fib_id, + 'is_ipv6': is_ip6, + 'is_add': is_add, + 'oui': oui, + }) |