Skip to content

Remove host interfaces fetching operations from __init__ method of the VMTopology class#2446

Merged
lguohan merged 1 commit intosonic-net:masterfrom
gord1306:fetch_intf_in_init
Nov 6, 2020
Merged

Remove host interfaces fetching operations from __init__ method of the VMTopology class#2446
lguohan merged 1 commit intosonic-net:masterfrom
gord1306:fetch_intf_in_init

Conversation

@gord1306
Copy link
Contributor

@gord1306 gord1306 commented Nov 2, 2020

Summary:
Fixes # (improvement)
The _init method of VMTopoogy class calls the ifconfig method to init host_ifaces.
Move to the init method to use the update() method to replace this operation.
The update() method supports the retry mechanism and can avoid the "ifconfig -a"
conflict issue if there are multiple job perform add/remove topo

Signed-off-by: Gord Chen gord_chen@edge-core.com

Type of change

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

Approach

What is the motivation for this PR?

The update method support retry mechanism

How did you do it?

How did you verify/test it?

Use add/remove topo to test

Any platform specific information?

AS7816-64X

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

Documentation

…e VMTopology class

Move the interfaces fetching operations to the init method, and use
the update() method to fetch.

Signed-off-by: Gord Chen <gord_chen@edge-core.com>
@yxieca yxieca requested a review from lguohan November 5, 2020 03:16
@yxieca
Copy link
Collaborator

yxieca commented Nov 5, 2020

@lguohan can you also take a quick look at this change?

@lguohan lguohan merged commit 8fb9cc9 into sonic-net:master Nov 6, 2020
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
Update sonic-utilities submodule pointer to include the following:
* ab21b58 [202205] check for vxlan mapping before removing vlan (sonic-net#2388) ([sonic-net#2446](sonic-net/sonic-utilities#2446))
* e111ad4 [202205][Auto-Techsupport] Fix the coredump_gen_handler Exception when the History table is empty (sonic-net#2265) ([sonic-net#2433](sonic-net/sonic-utilities#2433))
* 6925947 [watermarkstat][202205] Add new warning message for the 'q_shared_multi' counters ([sonic-net#2406](sonic-net/sonic-utilities#2406))

Signed-off-by: dgsudharsan <sudharsand@nvidia.com>
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.

3 participants