Skip to content

Delete xde device when create_port fails #1680

Closed
@bnaecker

Description

@bnaecker

When we create OPTE ports, one step is to create an xde device. However, we only call delete_xde in the Drop implementation on the port objects. If the create_port function fails after having created the xde device, the xde data link will never be cleaned up.

We need to be sure to call delete_xde if create_port fails, before returning from the function.

Metadata

Metadata

Assignees

Labels

Sled AgentRelated to the Per-Sled Configuration and ManagementnetworkingRelated to the networking.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions