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

[Test Gap] Need a new test script to cover secondary subnet functionality #17145

Open
ZhaohuiS opened this issue Feb 25, 2025 · 0 comments
Open

Comments

@ZhaohuiS
Copy link
Contributor

Issue Type

Test Gap

Description

Need a new test script to cover secondary subnet functionality
secondary subnet is enabled in sonic-net/SONiC#1470

sudo config interface ip add Vlan1000 192.169.0.1/22 --secondary
sudo config interface ip remove Vlan1000 192.169.0.1/22

Check if the output of "show ip inteface" is correct.

admin@bjw-can-7260-11:~$ show ip interface
Interface       Master    IPv4 address/mask    Admin/Oper    BGP Neighbor    Neighbor IP
--------------  --------  -------------------  ------------  --------------  -------------
Loopback0                 10.1.0.32/32         up/up         N/A             N/A
PortChannel101            10.0.0.32/31         up/up         ARISTA01T1      10.0.0.33
PortChannel102            10.0.0.34/31         up/up         ARISTA02T1      10.0.0.35
PortChannel103            10.0.0.36/31         up/up         ARISTA03T1      10.0.0.37
PortChannel104            10.0.0.38/31         up/up         ARISTA04T1      10.0.0.39
Vlan1000                  192.168.0.1/25       up/up         N/A             N/A
                          192.169.0.1/22                     N/A             N/A
Vlan2000                  192.168.0.129/25     up/up         N/A             N/A
docker0                   240.127.1.1/24       up/down       N/A             N/A
eth0                      10.150.22.157/23     up/up         N/A             N/A
lo                        127.0.0.1/16         up/up         N/A             N/A
admin@bjw-can-7260-11:~$ 

Check if the redis data is correct.

admin@bjw-can-7260-11:~$ sudo redis-cli -n 4 keys "VLAN_INTERFACE*"
1) "VLAN_INTERFACE|Vlan2000|192.168.0.129/25"
2) "VLAN_INTERFACE|Vlan2000|fc02:1000:0:1::1/64"
3) "VLAN_INTERFACE|Vlan1000|fc02:1000::1/64"
4) "VLAN_INTERFACE|Vlan2000"
5) "VLAN_INTERFACE|Vlan1000"
6) "VLAN_INTERFACE|Vlan1000|192.168.0.1/25"
7) "VLAN_INTERFACE|Vlan1000|192.169.0.1/22"

Issue Details

For now, we don't have specific case to cover secondary subnet after sonic-net/SONiC#1470

Impact or Proposed Behavior

Secondary subnet should be present in output of show ip interface or redis db.

Importance or Severity

Critical

Is it platform specific

generic

Relevant log output

Output of show version

Attach files (if any)

No response

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

No branches or pull requests

2 participants