Skip to content
Snippets Groups Projects
Commit 8ee8ef16 authored by xiaohua guan's avatar xiaohua guan Committed by Yas Naoi
Browse files

Issue #3352843 by Xiaohua Guan, yas: Fix an error: "The Router <router namel>...

Issue #3352843 by Xiaohua Guan, yas: Fix an error: "The Router <router namel> could not be added an interface"
parent ad760d07
No related branches found
No related tags found
No related merge requests found
...@@ -1727,6 +1727,11 @@ class OpenStackOperationsService implements OpenStackOperationsServiceInterface ...@@ -1727,6 +1727,11 @@ class OpenStackOperationsService implements OpenStackOperationsServiceInterface
return TRUE; return TRUE;
} }
// Update the Port entity.
$this->ec2Service->updatePorts([
'PortId' => $result['PortId'],
]);
// Update port tags. // Update port tags.
if ($this->ec2Service instanceof OpenStackRestService) { if ($this->ec2Service instanceof OpenStackRestService) {
$ports = $this->entityTypeManager $ports = $this->entityTypeManager
...@@ -1745,12 +1750,12 @@ class OpenStackOperationsService implements OpenStackOperationsServiceInterface ...@@ -1745,12 +1750,12 @@ class OpenStackOperationsService implements OpenStackOperationsServiceInterface
$port = reset($ports); $port = reset($ports);
$port->setOwnerId($entity->getOwnerId()); $port->setOwnerId($entity->getOwnerId());
$this->awsCloudOperationsService->updateNameAndCreatedByTags($port, $result['PortId']); $this->awsCloudOperationsService->updateNameAndCreatedByTags($port, $result['PortId']);
}
// Update the Port entity. // Update the Port entity.
$this->ec2Service->updatePorts([ $this->ec2Service->updatePorts([
'PortId' => $result['PortId'], 'PortId' => $result['PortId'],
]); ]);
}
$this->processOperationStatus($entity, 'added an interface'); $this->processOperationStatus($entity, 'added an interface');
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment