Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

DPB: Dependency check using YANG in VS container #45

Merged
merged 1 commit into from
Feb 13, 2020

Conversation

vasant17
Copy link
Collaborator

@vasant17 vasant17 commented Feb 11, 2020

- What I did
Added required packages to enabled YANG dependency check for Dynamic Port Breakout in VS container

- How I did it
Modified Make and Docker jinja template files
- How to verify it
Built VS container and ensured that port breakout command executed successfully

- Description for the changelog

- A picture of a cute animal (not mandatory but encouraged)

TEST:
vapatil@server09:~/workspace/XU_DPB_0206/sonic-buildimage$ docker exec -it vs-vp bash
root@766c4a58e8f9:/# show int status
Interface Lanes Speed MTU Alias Vlan Oper Admin Type Asym PFC


Ethernet0 25,26,27,28 100G 9100 Eth0/1 routed up up N/A N/A
Ethernet4 29,30,31,32 100G 9100 Eth1/1 routed up up N/A N/A
Ethernet8 33,34,35,36 100G 9100 Eth2/1 routed up up N/A N/A
Ethernet12 37,38,39,40 100G 9100 Eth3/1 routed up up N/A N/A
Ethernet16 45,46,47,48 100G 9100 Eth4/1 routed up up N/A N/A
Ethernet20 41,42,43,44 100G 9100 Eth5/1 routed up up N/A N/A
Ethernet24 1,2,3,4 100G 9100 Eth6/1 routed up up N/A N/A
Ethernet28 5,6,7,8 100G 9100 Eth7/1 routed up up N/A N/A
Ethernet32 13,14,15,16 100G 9100 Eth8/1 routed up up N/A N/A
Ethernet36 9,10,11,12 100G 9100 Eth9/1 routed up up N/A N/A
Ethernet40 17,18,19,20 100G 9100 Eth10/1 routed up up N/A N/A
Ethernet44 21,22,23,24 100G 9100 Eth11/1 routed up up N/A N/A
Ethernet48 53,54,55,56 100G 9100 Eth12/1 routed up up N/A N/A
Ethernet52 49,50,51,52 100G 9100 Eth13/1 routed up up N/A N/A
Ethernet56 57,58,59,60 100G 9100 Eth14/1 routed up up N/A N/A
Ethernet60 61,62,63,64 100G 9100 Eth15/1 routed up up N/A N/A
Ethernet64 69,70,71,72 100G 9100 Eth16/1 routed up up N/A N/A
Ethernet68 65,66,67,68 100G 9100 Eth17/1 routed up up N/A N/A
Ethernet72 73,74,75,76 100G 9100 Eth18/1 routed up up N/A N/A
Ethernet76 77,78,79,80 100G 9100 Eth19/1 routed up up N/A N/A
Ethernet80 109,110,111,112 100G 9100 Eth20/1 routed up up N/A N/A
Ethernet84 105,106,107,108 100G 9100 Eth21/1 routed up up N/A N/A
Ethernet88 113,114,115,116 100G 9100 Eth22/1 routed up up N/A N/A
Ethernet92 117,118,119,120 100G 9100 Eth23/1 routed up up N/A N/A
Ethernet96 125,126,127,128 100G 9100 Eth24/1 routed up up N/A N/A
Ethernet100 121,122,123,124 100G 9100 Eth25/1 routed up up N/A N/A
Ethernet104 81,82,83,84 100G 9100 Eth26/1 routed up up N/A N/A
Ethernet108 85,86,87,88 100G 9100 Eth27/1 routed up up N/A N/A
Ethernet112 93,94,95,96 100G 9100 Eth28/1 routed up up N/A N/A
Ethernet116 89,90,91,92 100G 9100 Eth29/1 routed up up N/A N/A
Ethernet120 101,102,103,104 100G 9100 Eth30/1 routed up up N/A N/A
Ethernet124 97,98,99,100 100G 9100 Eth31/1 routed up up N/A N/A
root@766c4a58e8f9:/# config interface breakout Ethernet0 4x25G[10G] -f -v -y

Running Breakout Mode : 1x100G[40G]
Target Breakout Mode : 4x25G[10G]

Ports to be deleted :
{
"Ethernet0": "100000"
}
Ports to be added :
{
"Ethernet2": "25000",
"Ethernet3": "25000",
"Ethernet0": "25000",
"Ethernet1": "25000"
}

After running Logic to limit the impact

Final list of ports to be deleted :
{
"Ethernet0": "100000"
}
Final list of ports to be added :
{
"Ethernet2": "25000",
"Ethernet3": "25000",
"Ethernet0": "25000",
"Ethernet1": "25000"
}
Loaded below Yang Models
['sonic-acl', 'sonic-vlan', 'sonic-portchannel', 'sonic-port', 'sonic-head', 'sonic-interface']
Reading data from Redis configDb

Start Port Deletion
Find dependecies for port Ethernet0
Deleting Port: Ethernet0
Data Validation successful
Generate Final Config to write in DB
Writing in Config DB

*** Ports have been deleted successfully ***

Verify Port Deletion from Asic DB, Wait...

Start Port Addition
Merge Port Config for ['Ethernet2', 'Ethernet3', 'Ethernet0', 'Ethernet1']
Data Validation successful
Generate Final Config to write in DB
Writing in Config DB

*** Ports have been added successfully ***

Breakout process got successfully completed.
root@766c4a58e8f9:/# show int status
Interface Lanes Speed MTU Alias Vlan Oper Admin Type Asym PFC


Ethernet0 25 25G N/A Eth0/1 routed up up N/A N/A
Ethernet1 26 25G 9100 Eth0/2 routed up up N/A N/A
Ethernet2 27 25G 9100 Eth0/3 routed up up N/A N/A
Ethernet3 28 25G 9100 Eth0/4 routed up up N/A N/A
Ethernet4 29,30,31,32 100G 9100 Eth1/1 routed up up N/A N/A
Ethernet8 33,34,35,36 100G 9100 Eth2/1 routed up up N/A N/A
Ethernet12 37,38,39,40 100G 9100 Eth3/1 routed up up N/A N/A
Ethernet16 45,46,47,48 100G 9100 Eth4/1 routed up up N/A N/A
Ethernet20 41,42,43,44 100G 9100 Eth5/1 routed up up N/A N/A
Ethernet24 1,2,3,4 100G 9100 Eth6/1 routed up up N/A N/A
Ethernet28 5,6,7,8 100G 9100 Eth7/1 routed up up N/A N/A
Ethernet32 13,14,15,16 100G 9100 Eth8/1 routed up up N/A N/A
Ethernet36 9,10,11,12 100G 9100 Eth9/1 routed up up N/A N/A
Ethernet40 17,18,19,20 100G 9100 Eth10/1 routed up up N/A N/A
Ethernet44 21,22,23,24 100G 9100 Eth11/1 routed up up N/A N/A
Ethernet48 53,54,55,56 100G 9100 Eth12/1 routed up up N/A N/A
Ethernet52 49,50,51,52 100G 9100 Eth13/1 routed up up N/A N/A
Ethernet56 57,58,59,60 100G 9100 Eth14/1 routed up up N/A N/A
Ethernet60 61,62,63,64 100G 9100 Eth15/1 routed up up N/A N/A
Ethernet64 69,70,71,72 100G 9100 Eth16/1 routed up up N/A N/A
Ethernet68 65,66,67,68 100G 9100 Eth17/1 routed up up N/A N/A
Ethernet72 73,74,75,76 100G 9100 Eth18/1 routed up up N/A N/A
Ethernet76 77,78,79,80 100G 9100 Eth19/1 routed up up N/A N/A
Ethernet80 109,110,111,112 100G 9100 Eth20/1 routed up up N/A N/A
Ethernet84 105,106,107,108 100G 9100 Eth21/1 routed up up N/A N/A
Ethernet88 113,114,115,116 100G 9100 Eth22/1 routed up up N/A N/A
Ethernet92 117,118,119,120 100G 9100 Eth23/1 routed up up N/A N/A
Ethernet96 125,126,127,128 100G 9100 Eth24/1 routed up up N/A N/A
Ethernet100 121,122,123,124 100G 9100 Eth25/1 routed up up N/A N/A
Ethernet104 81,82,83,84 100G 9100 Eth26/1 routed up up N/A N/A
Ethernet108 85,86,87,88 100G 9100 Eth27/1 routed up up N/A N/A
Ethernet112 93,94,95,96 100G 9100 Eth28/1 routed up up N/A N/A
Ethernet116 89,90,91,92 100G 9100 Eth29/1 routed up up N/A N/A
Ethernet120 101,102,103,104 100G 9100 Eth30/1 routed up up N/A N/A
Ethernet124 97,98,99,100 100G 9100 Eth31/1 routed up up N/A N/A
root@766c4a58e8f9:/# config interface breakout Ethernet0 1x100G[40G] -f -v -y

Running Breakout Mode : 4x25G[10G]
Target Breakout Mode : 1x100G[40G]

Ports to be deleted :
{
"Ethernet2": "25000",
"Ethernet3": "25000",
"Ethernet0": "25000",
"Ethernet1": "25000"
}
Ports to be added :
{
"Ethernet0": "100000"
}

After running Logic to limit the impact

Final list of ports to be deleted :
{
"Ethernet2": "25000",
"Ethernet3": "25000",
"Ethernet0": "25000",
"Ethernet1": "25000"
}
Final list of ports to be added :
{
"Ethernet0": "100000"
}
Loaded below Yang Models
['sonic-acl', 'sonic-vlan', 'sonic-portchannel', 'sonic-port', 'sonic-head', 'sonic-interface']
Reading data from Redis configDb

Start Port Deletion
Find dependecies for port Ethernet2
Find dependecies for port Ethernet3
Find dependecies for port Ethernet0
Find dependecies for port Ethernet1
Deleting Port: Ethernet2
Deleting Port: Ethernet3
Deleting Port: Ethernet0
Deleting Port: Ethernet1
Data Validation successful
Generate Final Config to write in DB
Writing in Config DB

*** Ports have been deleted successfully ***

Verify Port Deletion from Asic DB, Wait...

Start Port Addition
Merge Port Config for ['Ethernet0']
Data Validation successful
Generate Final Config to write in DB
Writing in Config DB

*** Ports have been added successfully ***

Breakout process got successfully completed.
root@766c4a58e8f9:/# how int status
bash: how: command not found
root@766c4a58e8f9:/# show int status
Interface Lanes Speed MTU Alias Vlan Oper Admin Type Asym PFC


Ethernet0 25,26,27,28 100G N/A Eth0/1 routed up up N/A N/A
Ethernet4 29,30,31,32 100G 9100 Eth1/1 routed up up N/A N/A
Ethernet8 33,34,35,36 100G 9100 Eth2/1 routed up up N/A N/A
Ethernet12 37,38,39,40 100G 9100 Eth3/1 routed up up N/A N/A
Ethernet16 45,46,47,48 100G 9100 Eth4/1 routed up up N/A N/A
Ethernet20 41,42,43,44 100G 9100 Eth5/1 routed up up N/A N/A
Ethernet24 1,2,3,4 100G 9100 Eth6/1 routed up up N/A N/A
Ethernet28 5,6,7,8 100G 9100 Eth7/1 routed up up N/A N/A
Ethernet32 13,14,15,16 100G 9100 Eth8/1 routed up up N/A N/A
Ethernet36 9,10,11,12 100G 9100 Eth9/1 routed up up N/A N/A
Ethernet40 17,18,19,20 100G 9100 Eth10/1 routed up up N/A N/A
Ethernet44 21,22,23,24 100G 9100 Eth11/1 routed up up N/A N/A
Ethernet48 53,54,55,56 100G 9100 Eth12/1 routed up up N/A N/A
Ethernet52 49,50,51,52 100G 9100 Eth13/1 routed up up N/A N/A
Ethernet56 57,58,59,60 100G 9100 Eth14/1 routed up up N/A N/A
Ethernet60 61,62,63,64 100G 9100 Eth15/1 routed up up N/A N/A
Ethernet64 69,70,71,72 100G 9100 Eth16/1 routed up up N/A N/A
Ethernet68 65,66,67,68 100G 9100 Eth17/1 routed up up N/A N/A
Ethernet72 73,74,75,76 100G 9100 Eth18/1 routed up up N/A N/A
Ethernet76 77,78,79,80 100G 9100 Eth19/1 routed up up N/A N/A
Ethernet80 109,110,111,112 100G 9100 Eth20/1 routed up up N/A N/A
Ethernet84 105,106,107,108 100G 9100 Eth21/1 routed up up N/A N/A
Ethernet88 113,114,115,116 100G 9100 Eth22/1 routed up up N/A N/A
Ethernet92 117,118,119,120 100G 9100 Eth23/1 routed up up N/A N/A
Ethernet96 125,126,127,128 100G 9100 Eth24/1 routed up up N/A N/A
Ethernet100 121,122,123,124 100G 9100 Eth25/1 routed up up N/A N/A
Ethernet104 81,82,83,84 100G 9100 Eth26/1 routed up up N/A N/A
Ethernet108 85,86,87,88 100G 9100 Eth27/1 routed up up N/A N/A
Ethernet112 93,94,95,96 100G 9100 Eth28/1 routed up up N/A N/A
Ethernet116 89,90,91,92 100G 9100 Eth29/1 routed up up N/A N/A
Ethernet120 101,102,103,104 100G 9100 Eth30/1 routed up up N/A N/A
Ethernet124 97,98,99,100 100G 9100 Eth31/1 routed up up N/A N/A
root@766c4a58e8f9:/#
vapatil@server09:~/workspace/XU_DPB_0206/sonic-buildimage$

Ran the existing system test case for DPB: 2 passed in 501.48 seconds, 100%

@zhenggen-xu zhenggen-xu merged commit 1c2fd93 into zhenggen-xu:sonic-cfg-mgmt Feb 13, 2020
praveen-li pushed a commit to praveen-li/sonic-buildimage that referenced this pull request Aug 12, 2020
…n-xu#45) (sonic-net#4990)

Added required packages to enabled YANG dependency check for Dynamic Port Breakout in VS container.

[sonic-utilities PR sonic-net#766](sonic-net/sonic-utilities#766) has a dependency on it.
Getting error like the following without this fix: `ImportError: No module named yang - required module not found`

Signed-off-by: Sangita Maity <sangitamaity0211@gmail.com>
praveen-li pushed a commit to praveen-li/sonic-buildimage that referenced this pull request Aug 9, 2022
#### Why I did it

Submodule update for sonic-dbsyncd with following change:
```
0d67faf 2022-07-28 | Replace pyswsssdk with sonic-py-common (zhenggen-xu#45) [Hua Liu]
265c833 2022-01-11 | Updated the Azure pipeline for Code Coverage (zhenggen-xu#44) [abdosi]
6548116 2021-04-04 | [ci]: add proper azp [Guohan Lu]
43b9dab 2021-04-04 | [pytest]: add pytest.ini [Guohan Lu]
```

#### How I did it

#### How to verify it

#### Which release branch to backport (provide reason below if selected)

<!--
- Note we only backport fixes to a release branch, *not* features!
- Please also provide a reason for the backporting below.
- e.g.
- [x] 202006
-->

- [ ] 201811
- [ ] 201911
- [ ] 202006
- [ ] 202012
- [ ] 202106

#### Description for the changelog
Submodule update for sonic-dbsyncd with following change:
```
0d67faf 2022-07-28 | Replace pyswsssdk with sonic-py-common (zhenggen-xu#45) [Hua Liu]
265c833 2022-01-11 | Updated the Azure pipeline for Code Coverage (zhenggen-xu#44) [abdosi]
6548116 2021-04-04 | [ci]: add proper azp [Guohan Lu]
43b9dab 2021-04-04 | [pytest]: add pytest.ini [Guohan Lu]
```

#### A picture of a cute animal (not mandatory but encouraged)

Co-authored-by: liuh-80 <azureuser@liuh-dev-vm-02.5fg3zjdzj2xezlx1yazx5oxkzd.hx.internal.cloudapp.net>
praveen-li pushed a commit to praveen-li/sonic-buildimage that referenced this pull request Oct 17, 2022
zhenggen-xu pushed a commit that referenced this pull request May 24, 2024
sonic-dhcp-relay
5ae186f Yaqiang Zhu Tue Dec 19 12:05:15 2023 -0500 [counter] Clear counter table when init (#45)
40c6877 Jing Zhang Fri Nov 10 12:41:23 2023 -0800 [CodeQL] fix unmet dependency for build-swss-common (#44)

sonic-dhcpmon
7c55e50 StormLiangMS Thu Sep 14 09:57:06 2023 +0800 Merge pull request #13 from jcaiMR/dev/jcai_master_interface_counter
085a087 jcaiMR Mon Sep 11 09:17:03 2023 +0000 refine counting logic
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