Skip to content

[lag_2]:modified files to get lag members from mini graph#327

Merged
maggiemsft merged 3 commits intosonic-net:masterfrom
chitra-raghavan:sonic-mgmt-s6100
Nov 8, 2017
Merged

[lag_2]:modified files to get lag members from mini graph#327
maggiemsft merged 3 commits intosonic-net:masterfrom
chitra-raghavan:sonic-mgmt-s6100

Conversation

@chitra-raghavan
Copy link
Contributor

Issue:

The script for Lag_2 [single_lag_test.yml] takes the interface number from topo_t1-lag.yml vlan info.
The topo_t1-lag.yml file has the vlan listed in contiguous order from 0 to31. For non-contiguous ports, getting port from vlan info yields wrong port details.
Link to issue : #313

Snip from single_lag_test.yml

set_fact:
iface_behind_lag_member_0: "{{ topology['VMs'][peer_device]['vlans'][0] }}"

set_fact:
iface_behind_lag_member_1: "{{ topology['VMs'][peer_device]['vlans'][1] }}"

What I did :
script: ansible/roles/test/tasks/single_lag_test.yml

  • Modified the script to get the lag port details from minigraph_port_indices of the port.
  • when the peer_device name matches with the minigraph neighbour name, the port indices of the port is extracted and stored in a list.
  • The list members ( lag ports) are used in the script lag_lacp_timing_test.yml

@msftclas
Copy link

msftclas commented Nov 2, 2017

CLA assistant check
All CLA requirements met.

@lguohan lguohan requested a review from maggiemsft November 7, 2017 18:59
@maggiemsft maggiemsft merged commit 8cba861 into sonic-net:master Nov 8, 2017
@chitra-raghavan chitra-raghavan deleted the sonic-mgmt-s6100 branch March 6, 2018 09:12
praveen-li pushed a commit to praveen-li/sonic-mgmt that referenced this pull request Jun 20, 2019
* msft_github/master:
  Update README.testbed.Setup.md
  call test by test case name (sonic-net#362)
  [testbed] fanout add rootfanout connect when deploying fanout switch (sonic-net#368)
  [lag_2] enable lag_2 test on t0-116 topology (sonic-net#390)
  [deployment] add missing quotation marks that breaks (sonic-net#386)
  Finalize T0-116 topology (sonic-net#381)
  Directed broadcast Test (sonic-net#377)
  [change_mac]: Change MAC address formatting (sonic-net#380)
  add github template helping report issues and submit pull request (sonic-net#378)
  Fixing logic to identify proper 'port_config.ini' file. (sonic-net#376)
  [sensors] add sensor definitions for arista 7260/7060 (sonic-net#371)
  [pfc_wd]: Rework for P2 (sonic-net#363)
  [test]: Update BGP speaker test (sonic-net#236)
  Add vm_resument which restore paused VMs (sonic-net#297)
  Copy acsbase files to ptf before ptf_runner (sonic-net#366)
  Modify dhcp_servers IPs in order to fix DHCP relay test (sonic-net#364)
  [templates]: Remove trailing space in t1-lag minigraph template (sonic-net#360)
  [fastreboot test]: Add "fanout_listener" for MLNX fanout switches (sonic-net#353)
  patch t0 portchannel name to 15 chars (sonic-net#358)
  [process_checker]: Add the process_checker playbook (sonic-net#349)
  fix issue 354 (sonic-net#355)
  Update build instruction for docker-ptf.gz and docker-sonic-mgmt.gz
  [upgrade_sonic]: Add upgrade_sonic as a convenience script to upgrade the device with an image (sonic-net#338)
  [acl test]: Generate switch info file. (sonic-net#346)
  fix t0 templates for generate minigraph (sonic-net#344)
  [loganalyzer_end.yml]: Rename expected_matches (sonic-net#345)
  [minigraph_facts]: Add the missing brace (sonic-net#342)
  [Arista7260cx3] update topology t0-116 to include port 17 and 19 (sonic-net#340)
  [fdb test] help switch populate mac table before starting the test (sonic-net#341)
  [arista7260cx3] include port 18 and 20 as 50G breakout ports (sonic-net#339)
  Loganalyzer enhancements (sonic-net#321)
  [plugin]: Adding Dell platform in switch connection plugin (sonic-net#333)
  modified files to get lag members from minigraph (sonic-net#327)
  [minigraph] modify script to fit the latest configuration method (sonic-net#331)
  [minigraph_fact] add port mapping for 5 INGRASYS switches (sonic-net#336)
  [sensors] add sensor data for 5 INGRASYS switches (sonic-net#335)
  [minigraph-template]: Add ACL L3 and mirroring tables to minigraph template. (sonic-net#330)
  [acltb-test]: Addopt ACL test to acl-loader. (sonic-net#299)
  [everflow test]: Addopt Everflow testbed test to acl-loader. (sonic-net#300)
  Remove hard-coded bgp speaker asn number, fetch from DUT (sonic-net#329)
  Port alias mapping added for Arista-7060CX-32S-C32 (sonic-net#328)
  Adding if case for S6100 platform to get port details (sonic-net#314)
  [interface_facts] improve interface facts checking performance (sonic-net#326)
  [fdb] Hard code port layout to enable fdb test on t0-116 topology (sonic-net#322) (sonic-net#320)
  [fib] Hard code port layout to enable fib test on t0-116 topology (sonic-net#322)
  [fib, fdb] Allow fib and fdb test info files to contain empty lines and comments (sonic-net#323)
  [lag_test]: Correct typo error for lag tests (sonic-net#325)
  [link flap test] improve performance of link flap test (sonic-net#319)
auspham pushed a commit to auspham/sonic-mgmt that referenced this pull request May 30, 2025
… asic minigraph template files (sonic-net#327)

<!--
Please make sure you've read and understood our contributing guidelines;
https://github.com/sonic-net/SONiC/blob/gh-pages/CONTRIBUTING.md

Please provide following information to help code review process a bit easier:
-->
### Description of PR
<!--
- Please include a summary of the change and which issue is fixed.
- Please also include relevant motivation and context. Where should reviewer start? background context?
- List any dependencies that are required for this change.
-->

Summary:
Fixes # (issue)

- This PR fixes the issue sonic-net#18507 caused by sonic-net#18161
- Portchannel name changes are done in file _ansible/templates/minigraph_dpg.j2_ but we need corresponding change in _ansible/templates/minigraph_dpg_asic.j2_ file as well so the names are same in both global and asic configs.

### Type of change

<!--
- Fill x for your type of change.
- e.g.
- [x] Bug fix
-->

- [x] Bug fix
- [ ] Testbed and Framework(new/improvement)
- [ ] New Test case
 - [ ] Skipped for non-supported platforms
- [ ] Test case improvement

### Back port request
- [ ] 202012
- [ ] 202205
- [ ] 202305
- [ ] 202311
- [ ] 202405
- [ ] 202411

### Approach
#### What is the motivation for this PR?

- To fix the minigraph template issues w.r.t Portchannel names for global and asic.

#### How did you do it?

- Add corresponding changes on _ansible/templates/minigraph_dpg_asic.j2_ similar to _ansible/templates/minigraph_dpg.j2_

#### How did you verify/test it?

- Run gen-mg with the new template modifications. With the new minigraph, made sure tests are passing for multi-asics

#### Any platform specific information?
Mutliasic

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

### Documentation
<!--
(If it's a new feature, new test case)
Did you update documentation/Wiki relevant to your implementation?
Link to the wiki page?
-->
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…D automatically (sonic-net#15236)

src/sonic-platform-daemons

* 2466680 - (HEAD -> 202205, origin/202205) add async notification support in active-active topo; refactor code for ycable tasks for change events  (sonic-net#327) (5 minutes ago) [vdahiya12]
* a07bc21 - [ycabled] refactor code for onboarding async client changes;refactor (sonic-net#355) (5 minutes ago) [vdahiya12]
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…D automatically (sonic-net#15366)

src/sonic-platform-daemons

* 18815c7 - (HEAD -> 202205, origin/202205) Revert "[ycabled] refactor code for onboarding async client changes;refactor (sonic-net#355)" (3 minutes ago) [Ying Xie]
* 5324554 - Revert "add async notification support in active-active topo; refactor code for ycable tasks for change events  (sonic-net#327)" (3 minutes ago) [Ying Xie]
* cbbe2b5 - Revert "[ycabled] fix bug for `show mux status` delayed response (sonic-net#364)" (3 minutes ago) [Ying Xie]
* 9746709 - Revert "[dualtor] Fix command `show mux status` (sonic-net#371)" (3 minutes ago) [Ying Xie]
* 551ab3c - Revert "[ycabled] correct the wrong function call for 'config hwmode state' (sonic-net#372)" (3 minutes ago) [Ying Xie]
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…D automatically (sonic-net#15749)

src/sonic-platform-daemons

* 112656c - (HEAD -> 202205, origin/202205) [ycabled][active-active] no initialize Async Client, when no active-active cable type; fix names for all ycabled threads (sonic-net#373) (4 minutes ago) [vdahiya12]
* e325d5a - Revert "Revert "[ycabled] correct the wrong function call for 'config hwmode state' (sonic-net#372)"" (4 minutes ago) [Ying Xie]
* ddabca1 - Revert "Revert "[dualtor] Fix command `show mux status` (sonic-net#371)"" (4 minutes ago) [Ying Xie]
* 28918da - Revert "Revert "[ycabled] fix bug for `show mux status` delayed response (sonic-net#364)"" (4 minutes ago) [Ying Xie]
* a849de9 - Revert "Revert "add async notification support in active-active topo; refactor code for ycable tasks for change events  (sonic-net#327)"" (4 minutes ago) [Ying Xie]
* cf1e73a - Revert "Revert "[ycabled] refactor code for onboarding async client changes;refactor (sonic-net#355)"" (4 minutes ago) [Ying Xie]
kazinator-arista pushed a commit to kazinator-arista/sonic-mgmt that referenced this pull request Mar 4, 2026
…tomatically (sonic-net#16654)

#### Why I did it
src/sonic-linux-kernel
```
* 9534615 - (HEAD -> 202211, origin/202211) arm64: ac5: Fix watchdog timeleft (sonic-net#334) (5 days ago) [pavannaregundi]
* 70c4df8 - [marvell-arm64]: Add support for 98DX35xx and 98CX85xx platform (sonic-net#311) (6 days ago) [pavannaregundi]
* aab079e - [Mellanox] Upstream kernel patches with HW-MGMT 7.0030.1011 (sonic-net#327) (4 weeks ago) [Kebo Liu]
```
#### How I did it
#### How to verify it
#### Description for the changelog
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