From cc4c5b2b6a8c36ce2164d05e95e564c4821a0b34 Mon Sep 17 00:00:00 2001 From: fuwei Date: Mon, 3 Apr 2023 21:01:07 +0800 Subject: [PATCH] [sugon_sdn]Fix code error that case stop vm faile. --- kvmagent/kvmagent/plugins/vm_plugin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kvmagent/kvmagent/plugins/vm_plugin.py b/kvmagent/kvmagent/plugins/vm_plugin.py index ea7a3b640..b4b0c24be 100644 --- a/kvmagent/kvmagent/plugins/vm_plugin.py +++ b/kvmagent/kvmagent/plugins/vm_plugin.py @@ -5534,7 +5534,7 @@ class VmPlugin(kvmagent.KvmAgent): self._record_operation(cmd.uuid, self.VM_OP_STOP) self._stop_vm(cmd) # notify vrouter agent nic removed from source host - for nic in cmd.nics: + for nic in cmd.vmNics: if nic.type == 'TFVNIC': vrouter_cmd = [ 'vrouter-port-control', -- Gitee