From 75cfea2619e0826b5ddfa5e733ba2b9524ac7ac8 Mon Sep 17 00:00:00 2001 From: asarfaty Date: Fri, 10 Apr 2020 06:28:32 +0200 Subject: [PATCH] NSX|P: Fix dhcp migration admin utility To use the correct plugin api Change-Id: Icc6570ddf6b0dd6d096250a50c7cc49f1c0a677b --- vmware_nsx/shell/admin/plugins/nsxp/resources/networks.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vmware_nsx/shell/admin/plugins/nsxp/resources/networks.py b/vmware_nsx/shell/admin/plugins/nsxp/resources/networks.py index 4b2879c30c..caf3015cf4 100644 --- a/vmware_nsx/shell/admin/plugins/nsxp/resources/networks.py +++ b/vmware_nsx/shell/admin/plugins/nsxp/resources/networks.py @@ -86,7 +86,7 @@ def migrate_dhcp_to_policy(resource, event, trigger, **kwargs): nets = plugin.get_networks(ctx) for net in nets: # skip non-dhcp networks - dhcp_port = plugin._get_sunbet_dhcp_port(ctx, net['id']) + dhcp_port = plugin._get_net_dhcp_port(ctx, net['id']) if not dhcp_port: LOG.info("Skipping network %s: No DHCP subnet found", net['id'])