From 89c44a4bca1c96a02ace5030e89070f747715bdb Mon Sep 17 00:00:00 2001 From: fuwei Date: Thu, 24 Nov 2022 14:02:43 +0800 Subject: [PATCH] [sugon_sdn]fix vrouter agent api call failed Fix vrouter agent api call failed when create vm. remove the vm name in the api parameter. Resolves: Change-Id: --- kvmagent/kvmagent/plugins/vm_plugin.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kvmagent/kvmagent/plugins/vm_plugin.py b/kvmagent/kvmagent/plugins/vm_plugin.py index a5a571665..fa6181a89 100644 --- a/kvmagent/kvmagent/plugins/vm_plugin.py +++ b/kvmagent/kvmagent/plugins/vm_plugin.py @@ -4726,7 +4726,7 @@ class Vm(object): '--oper=add', '--vm_project_uuid=%s' % transform_to_tf_uuid(cmd.accountUuid), '--instance_uuid=%s' % transform_to_tf_uuid(cmd.vmInstanceUuid), - ' --vm_name=%s' % cmd.vmName, + '--vm_name=', '--uuid=%s' % transform_to_tf_uuid(nic.uuid), '--vn_uuid=%s' % transform_to_tf_uuid(nic.l2NetworkUuid), '--port_type=NovaVMPort', @@ -5080,7 +5080,7 @@ class VmPlugin(kvmagent.KvmAgent): '--oper=add', '--vm_project_uuid=%s' % transform_to_tf_uuid(cmd.accountUuid), '--instance_uuid=%s' % transform_to_tf_uuid(cmd.vmInstanceUuid), - ' --vm_name=%s' % cmd.vmName, + '--vm_name=', '--uuid=%s' % transform_to_tf_uuid(nic.uuid), '--vn_uuid=%s' % transform_to_tf_uuid(nic.l2NetworkUuid), '--port_type=NovaVMPort', -- Gitee