Skip to content

Get nmconnection name by interface-name first#409

Open
Cristi1324 wants to merge 1 commit intocloudbase:masterfrom
Cristi1324:fix-nmconnection-name
Open

Get nmconnection name by interface-name first#409
Cristi1324 wants to merge 1 commit intocloudbase:masterfrom
Cristi1324:fix-nmconnection-name

Conversation

@Cristi1324
Copy link
Copy Markdown
Contributor

No description provided.

if nmconnection_ethernet:
for nmconn_file, nmconn in nmconnection_ethernet:
name = nmconn.get("connection", {}).get("id")
name = nmconn.get("interface-name", nmconn.get("id"))
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please add some additional unit test cases as well for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants