Skip to content

intfsyncd neighsyncd: Ignoring lo, eth0 and docker0 interfaces#34

Closed
stcheng wants to merge 1 commit intosonic-net:masterfrom
stcheng:ignore
Closed

intfsyncd neighsyncd: Ignoring lo, eth0 and docker0 interfaces#34
stcheng wants to merge 1 commit intosonic-net:masterfrom
stcheng:ignore

Conversation

@stcheng
Copy link
Contributor

@stcheng stcheng commented May 27, 2016

With this fix, we will only have the entries that we care appearing in the database. This allows the APP_DB to be synced with ASIC_DB and both contents draw the same picture.


/* Don't sync lo, eth0, and docker0 routes */
if (key == "lo" || key == "eth0" || key == "docker0")
return;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these are hardcoded values. Can you check if the key in the your front panel port list? That's more generic. as in some platform they may have other interfaces such as eth1, ... etc.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Then we need to get the list of ports, lags and vlans during the runtime. For now hard coded values can solve the issue but later we might have to discuss about what approach is better.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for interface sync, we need to get lo address into the swss. This is becasue we are putting bgp loopback IP address on interface lo, and this one needs to be in the ASIC in order to trap all IP packets destined to bgp loopback address.


In reply to: 65829595 [](ancestors = 65829595)

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

why not pass them the swss and let the orch agent to figure out? In our design, the apps are independent probably not a good place to figure out the list of ports, lags and vlans during the runtime.


In reply to: 65829595 [](ancestors = 65829595)

@lguohan
Copy link
Contributor

lguohan commented Jun 2, 2016

🕐

@stcheng stcheng closed this Jun 9, 2016
@stcheng stcheng deleted the ignore branch September 20, 2017 21:57
vasant17 added a commit to vasant17/sonic-swss that referenced this pull request May 5, 2020
oleksandrivantsiv pushed a commit to oleksandrivantsiv/sonic-swss that referenced this pull request Mar 1, 2023
lukasstockner pushed a commit to genesiscloud/sonic-swss that referenced this pull request Apr 2, 2023
dgsudharsan pushed a commit that referenced this pull request Feb 25, 2025
```<br>* c97d84dd - (HEAD -> 202412) Merge branch '202411' of https://github.com/sonic-net/sonic-swss into 202412 (2025-02-16) [Sonic Automation]
* 5031aad - (origin/202411) Capability query for MACSEC ACL attribute (#3511) (2025-02-12) [mssonicbld]
* 4b357e5 - Fix VRF update handling for loopback interfaces in IntfsOrch (#3512) (2025-02-12) [mssonicbld]
* fe98176 - Add a delay between killing teamd processes (#3510) (2025-02-11) [mssonicbld]
* e967711 - Remove RIF from m_rifsToAdd before deleting it (#3499) (2025-02-07) [mssonicbld]
* 337c9a1 - Optimize counter polling interval by making it more accurate (#3500) (2025-02-07) [mssonicbld]<br>```
manoharan-nexthop added a commit to manoharan-nexthop/sonic-swss that referenced this pull request May 19, 2025
addRoutePost() assumes the VRF is already added and attempts
to get the VRF ID for the same and used it to lookup the route
entry. Since the VRF is not yet created, exception gets thrown.

When the VRF is not yet created, the route add can be postponed
for the VRF to be created first.
jianyuewu pushed a commit to jianyuewu/sonic-swss that referenced this pull request Dec 24, 2025
…sonic-net#34)

- Use json.hpp to construct the JSON data and store into the m_dumpFile,
    which could be used as input file for swssconfig.
- Add unit test for verification
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