dhcp: multiple additions

DHCP additions:
1) DHCPv4 will only relay a message back to the client, if the Option82 information is present. So make this the default.
2) It is no longer possible to select via the API to "insert circuit ID" - since this is now default
3) Remove the version 2 API since it's now the same as version 1.
4) Adding the VSS option is now conditional only on the presence of VSS config (not the 'insert' option in the set API)
5) DHCP proxy dump via API

Change-Id: Ia7271ba8c1d4dbf34a02c401d268ccfbb1b74f17
Signed-off-by: Neale Ranns <nranns@cisco.com>
This commit is contained in:
Neale Ranns
2017-02-14 07:28:41 -08:00
committed by Damjan Marion
parent 2e3677bb20
commit 20a175a184
15 changed files with 974 additions and 850 deletions

View File

@ -1240,16 +1240,14 @@ class VppPapiProvider(object):
rx_table_id=0,
server_table_id=0,
is_add=1,
is_ipv6=0,
insert_circuit_id=0):
is_ipv6=0):
return self.api(
self.papi.dhcp_proxy_config_2,
self.papi.dhcp_proxy_config,
{
'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,
})