A DHCP port will be created to obtain the server IP without the gateway IP, maybe we can think of a better idea.
# Create DHCP port port_dict = { 'name': '', 'admin_state_up': True, 'device_id': 'dhcp-' + subnet['id'], 'device_owner': const.DEVICE_OWNER_DHCP, 'network_id': subnet['network_id'], 'tenant_id': '', 'mac_address': const.ATTR_NOT_SPECIFIED, 'fixed_ips': [{'subnet_id': subnet['id']}]} try: dhcp_port = self._plugin.create_port(ctx, {'port': port_dict})
A DHCP port will be created to obtain the server IP without the gateway IP, maybe we can think of a better idea.
# Create DHCP port
port_ dict = {
'name' : '',
'admin_ state_up' : True,
'device_ id': 'dhcp-' + subnet['id'],
'device_ owner': const.DEVICE_ OWNER_DHCP,
'network_ id': subnet[ 'network_ id'],
'tenant_ id': '',
'mac_ address' : const.ATTR_ NOT_SPECIFIED,
'fixed_ ips': [{'subnet_id': subnet['id']}]}
dhcp_ port = self._plugin. create_ port(ctx, {'port': port_dict})
try: