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

Implementation of System ports initialization, Interface & Neighbor Synchronization... #1431

Merged
merged 30 commits into from
Jan 17, 2021
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
30c8a0c
[voq] Redis instance for global app db
Sep 10, 2020
bfb6f2f
[voq] System port init and orchestration
Sep 10, 2020
ee967d9
[voq] Router interface for system ports, global app db sync
Sep 10, 2020
45942e7
[voq] Inband interface config
Sep 10, 2020
10771a8
[voq] System port neighbors
Sep 10, 2020
2ca2a00
[swss] Review comments fixes
Sep 29, 2020
8e235e6
[swss]Code review comments fix 2
Oct 1, 2020
52fe3e1
Merge branch 'master' into chassis-voq-pr1
vganesan-nokia Oct 1, 2020
1b6d62f
Merge branch 'master' into chassis-voq-pr1
vganesan-nokia Oct 11, 2020
8704004
[swss] voq code review comment fix 3
Oct 12, 2020
8b68af4
[swss] voq code review comments fixes 4
Oct 13, 2020
52972b6
[swss] Voq code review comments fixes 5
Oct 22, 2020
b6fe4e6
Merge branch 'master' into chassis-voq-pr1
vganesan-nokia Nov 3, 2020
34e9f68
[swss]VS tests for VOQ system ports
Nov 9, 2020
a42d3f5
[vstest]Voq switch test - removed chassis_db.json
Nov 20, 2020
8922f46
[vstest]VOQ switch system ports test
Nov 21, 2020
d9df781
[swss]VOQ Code review comments fix 6
Nov 21, 2020
39b1858
Merge branch 'master' into chassis-voq-pr1
vganesan-nokia Nov 30, 2020
21b7cd6
Merge branch 'master' into chassis-voq-pr1
vganesan-nokia Dec 2, 2020
233a1be
[swss]vs test for voq neighbor
Dec 3, 2020
e9fc950
[swss]vs test for voq nbr review comments fix 1
Dec 8, 2020
ae86130
[swss]vs test for voq nbr review comments fix 2
Dec 9, 2020
2d090d5
Merge branch 'master' into chassis-voq-pr1
vganesan-nokia Dec 18, 2020
d93ea79
[systemport]VOQ system port code review comments fix - 7
Dec 22, 2020
40fb3fc
[systemport] VS test chgs in code review comments fix - 7 reverted
Dec 22, 2020
a5c2533
Merge branch 'master' into chassis-voq-pr1
vganesan-nokia Dec 23, 2020
96d5a71
[systemport] Rebase to master, neighorch conflict fix
Dec 23, 2020
5878628
Merge remote-tracking branch 'vganesan-nokia/master' into chassis-voq…
Jan 12, 2021
0ab5d95
Merge remote-tracking branch 'origin/master' into chassis-voq-pr1
Jan 15, 2021
08b256b
[voq] azure-pipeline armhf build error fix
Jan 15, 2021
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions orchagent/intfsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ extern RouteOrch *gRouteOrch;
extern CrmOrch *gCrmOrch;
extern BufferOrch *gBufferOrch;
extern bool gIsNatSupported;
extern NeighOrch *gNeighOrch;
extern string gMySwitchType;

const int intfsorch_pri = 35;
Expand Down Expand Up @@ -441,6 +442,15 @@ bool IntfsOrch::setIntf(const string& alias, sai_object_id_t vrf_id, const IpPre

addIp2MeRoute(port.m_vr_id, *ip_prefix);

if(gMySwitchType == "voq")
{
if(gPortsOrch->isInbandPort(alias))
{
//Need to sync the inband intf neighbor for other asics
gNeighOrch->addInbandNeighbor(alias, ip_prefix->getIp());
}
}

if (port.m_type == Port::VLAN)
{
addDirectedBroadcast(port, *ip_prefix);
Expand All @@ -464,6 +474,14 @@ bool IntfsOrch::removeIntf(const string& alias, sai_object_id_t vrf_id, const Ip
{
removeIp2MeRoute(port.m_vr_id, *ip_prefix);

if(gMySwitchType == "voq")
{
if(gPortsOrch->isInbandPort(alias))
{
gNeighOrch->delInbandNeighbor(alias, ip_prefix->getIp());
}
}

if(port.m_type == Port::VLAN)
{
removeDirectedBroadcast(port, *ip_prefix);
Expand Down
Loading