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

[VRF] Install IPv6 link local route for new VRF #1926

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

iMasaruOki
Copy link

Signed-off-by: Masaru OKI masaru.oki@gmail.com

What I did
Fix for issue: sonic-net/sonic-buildimage#8831

Why I did it
When created new VRF, IPv6 link local route is not installed for the VRF.
It causes BGP unnumbered (ipv4 route via ipv6 nexthop) is not working.

How I verified it

Ethernet0 of DUT is connected to another switch speaking BGP (ASN 100).

Setting:

sudo config vrf add Vrf1
sudo config interface vrf bind Ethernet0 Vrf1
sudo config ipv6 enable link-local
vtysh \
-c "conf t" \
-c "router bgp 100 vrf Vrf1" \
-c "  router-id 1.1.1.1" \
-c "  neighbor Ethernet0 interface remote-as internal"

Wait for minutes, and run vtysh -c 'show bgp vrf all summary'

Details if related

Signed-off-by: Masaru OKI <masaru.oki@gmail.com>
@iMasaruOki iMasaruOki changed the title [swss] Install IPv6 link local route for new VRF [VRF] Install IPv6 link local route for new VRF Sep 23, 2021
@prsunny
Copy link
Collaborator

prsunny commented Sep 23, 2021

@AkhileshSamineni, please review

@iMasaruOki iMasaruOki force-pushed the ipv6-link-local-route-for-vrf branch 3 times, most recently from 076a1fc to 12eaea8 Compare September 24, 2021 12:16
EdenGri pushed a commit to EdenGri/sonic-swss that referenced this pull request Feb 28, 2022
The race condition is caused by a blocking Redis call which gets the contents of the FDB entry from ASIC DB.
Since it has been implemented as a simple loop, there is no guarantee that entry will be present in DB when the contents are being read.

- What I did
Fixed: [fdb] 'show mac' command failed with t0-56-po2vlan topology sonic-net#1866

- How I did it
Removed blocking calls from fdbshow

- How to verify it
Run FDB test

- Previous command output (if the output of a command-line utility has changed)
root@sonic:/home/admin# show mac
Key 'ASIC_STATE:SAI_OBJECT_TYPE_FDB_ENTRY:{"bvid":"oid:0x260000000009cc","mac":"02:11:22:33:20:00","switch_id":"oid:0x21000000000000"}' unavailable in database '1'

- New command output (if the output of a command-line utility has changed)
root@sonic:/home/admin# show mac
No.    Vlan    MacAddress    Port    Type
-----  ------  ------------  ------  ------
Total number of entries 0

Signed-off-by: Nazarii Hnydyn <nazariig@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.

2 participants