Skip to content

[action] [PR:12932] Fix add-topo failure when deploying topology with empty VM list.#14166

Merged
mssonicbld merged 1 commit intosonic-net:202311from
mssonicbld:cherry/202311/12932
Aug 19, 2024
Merged

[action] [PR:12932] Fix add-topo failure when deploying topology with empty VM list.#14166
mssonicbld merged 1 commit intosonic-net:202311from
mssonicbld:cherry/202311/12932

Conversation

@mssonicbld
Copy link
Copy Markdown
Collaborator

Description of PR

Summary:
When deploying any topology without the VM list as below, we will running into a few errors. And this PR is to fix these issues:

image

Type of change

  • Bug fix
  • Testbed and Framework(new/improvement)
  • Test case(new/improvement)

Back port request

  • 201911
  • 202012
  • 202205
  • 202305
  • 202311

Approach

What is the motivation for this PR?

There are 2 issues are hitting, when deploying any topology without the VM list:

  • Ansible Bind topology to VMs task task will fail, because the vm list is empty, but it is checking the VM base in the VM list.
  • The generated minigraph will fail to load, because minigraph.py is not expecting any ACL interface with empty attached to list.

How did you do it?

This change fixes both issue with adding the empty list checks in these 2 places.

How did you verify/test it?

Run the add-topo and deploy-mg locally, both works.

Any platform specific information?

No.

Supported testbed topology if it's a new test case?

N/A

Documentation

N/A

…ic-net#12932)

What is the motivation for this PR?
There are 2 issues are hitting, when deploying any topology without the VM list:

Ansible Bind topology to VMs task task will fail, because the vm list is empty, but it is checking the VM base in the VM list.
The generated minigraph will fail to load, because minigraph.py is not expecting any ACL interface with empty attached to list.
How did you do it?
This change fixes both issue with adding the empty list checks in these 2 places.

How did you verify/test it?
Run the add-topo and deploy-mg locally, both works.

Any platform specific information?
No.
@mssonicbld
Copy link
Copy Markdown
Collaborator Author

Original PR: #12932

@mssonicbld mssonicbld merged commit 5fa5792 into sonic-net:202311 Aug 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants