Skip to content

Fix test_iface_namingmode.py::test_show_ip_route_v4 for T2 topo#7411

Merged
wenyiz2021 merged 1 commit intosonic-net:masterfrom
ysmanman:fixTestShowIpRouteV4
Feb 9, 2023
Merged

Fix test_iface_namingmode.py::test_show_ip_route_v4 for T2 topo#7411
wenyiz2021 merged 1 commit intosonic-net:masterfrom
ysmanman:fixTestShowIpRouteV4

Conversation

@ysmanman
Copy link
Contributor

@ysmanman ysmanman commented Feb 8, 2023

Description of PR

iface_namingmode/test_iface_namingmode.py::test_show_ip_route_v4 checks the output of 'show ip route 192.168.1.1' and makes sure the alias/name of spine/updstream ports is correctly in the output. However, in T2 topo, 192.168.1.1 is forwarded via a route learnt over ibgp and thus the interfaces in 'show ip route' output are inband ports. Fix the issue by explicitly checking the output of default route, which is learnt over ebgp via upstream ports.

Summary:
Fixes # (issue)

Type of change

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

Back port request

  • 201911
  • 202012
  • [x ] 202205

Approach

What is the motivation for this PR?

How did you do it?

How did you verify/test it?

Any platform specific information?

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

Documentation

@ysmanman
Copy link
Contributor Author

ysmanman commented Feb 8, 2023

Add @arlakshm @wenyiz2021 for viz.

@wenyiz2021
Copy link
Contributor

/azp run

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@arlakshm
Copy link
Contributor

arlakshm commented Feb 8, 2023

/Azp run Azure.sonic-mgmt

@azure-pipelines
Copy link

Azure Pipelines successfully started running 1 pipeline(s).

@wenyiz2021 wenyiz2021 merged commit 34028f6 into sonic-net:master Feb 9, 2023
wangxin pushed a commit that referenced this pull request Feb 13, 2023
kellyyeh pushed a commit to kellyyeh/sonic-mgmt that referenced this pull request Mar 31, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants