Policy plugin: Move missing method from v3 to common
Change-Id: Ib48a313b68781ceea1792a3edbd7f086e2056736
This commit is contained in:
parent
b2e4570d54
commit
f05ea6cc3c
@ -570,6 +570,11 @@ class NsxPluginBase(db_base_plugin_v2.NeutronDbPluginV2,
|
||||
self._assert_on_vpn_port_change(original_port)
|
||||
self._assert_on_lb_port_fixed_ip_change(port_data, orig_dev_owner)
|
||||
|
||||
def _get_dhcp_port_name(self, net_name, net_id):
|
||||
return utils.get_name_and_uuid('%s-%s' % ('dhcp',
|
||||
net_name or 'network'),
|
||||
net_id)
|
||||
|
||||
def _build_port_name(self, context, port_data):
|
||||
device_owner = port_data.get('device_owner')
|
||||
device_id = port_data.get('device_id')
|
||||
|
@ -2239,11 +2239,6 @@ class NsxV3Plugin(agentschedulers_db.AZDhcpAgentSchedulerDbMixin,
|
||||
[db_utils.resource_fields(network,
|
||||
fields) for network in networks])
|
||||
|
||||
def _get_dhcp_port_name(self, net_name, net_id):
|
||||
return utils.get_name_and_uuid('%s-%s' % ('dhcp',
|
||||
net_name or 'network'),
|
||||
net_id)
|
||||
|
||||
def _get_qos_profile_id(self, context, policy_id):
|
||||
switch_profile_id = nsx_db.get_switch_profile_by_qos_policy(
|
||||
context.session, policy_id)
|
||||
|
Loading…
x
Reference in New Issue
Block a user