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

Layer 2 Forwarding Enhancements #885

Closed
wants to merge 37 commits into from
Closed
Changes from 2 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9afa981
add LAG name map to counter table
anilkpandey May 11, 2019
9f9935d
Delete .DS_Store
anilkpandey Jun 12, 2019
14f36f4
Merge remote-tracking branch 'upstream/master'
anilkpandey Aug 27, 2019
23dc382
Merge remote-tracking branch 'upstream/master'
anilkpandey Sep 7, 2019
d5370f4
Layer 2 Forwarding Enhancements
anilkpandey Sep 7, 2019
80a91a5
Layer 2 Forwarding Enhancements
anilkpandey Sep 8, 2019
0398cc8
Layer 2 Forwarding Enhancements
anilkpandey Sep 8, 2019
a53a461
Updated to reflect latest code changes
anilkpandey Sep 14, 2019
e02a7e3
Update fdborch.cpp
anilkpandey Sep 20, 2019
fb1d01b
add portchannel OID to NAME mapping in LAG_NAME_MAP_TABLE
anilkpandey Sep 26, 2019
93b50a5
Merge remote-tracking branch 'upstream/master'
anilkpandey Oct 15, 2019
a61485a
Update fdborch.cpp
anilkpandey Oct 21, 2019
3269a27
Update fdborch.cpp
anilkpandey Oct 22, 2019
30dfa58
Update fdborch.cpp
anilkpandey Oct 29, 2019
81b5f54
Update conftest.py
anilkpandey Oct 29, 2019
0df7f35
Update fdborch.cpp
anilkpandey Nov 1, 2019
cd6af32
Merge remote-tracking branch 'upstream/master'
anilkpandey Nov 5, 2019
7cb0d37
Update fdborch.cpp
anilkpandey Nov 6, 2019
7c29491
Update fdborch.cpp
anilkpandey Nov 8, 2019
753acb4
Update portsorch.cpp
anilkpandey Nov 10, 2019
0d0cb03
Update vlanmgr.cpp
anilkpandey Nov 10, 2019
869937e
Merge remote-tracking branch 'upstream/master'
anilkpandey Nov 14, 2019
379c2d7
Merge remote-tracking branch 'upstream/master'
anilkpandey Dec 6, 2019
da3f975
Merge remote-tracking branch 'upstream/master'
anilkpandey Dec 13, 2019
c852011
updated as per review comments
anilkpandey Dec 16, 2019
a9fb507
Update vlanmgr.cpp
anilkpandey Dec 16, 2019
a9c4b5d
Merge remote-tracking branch 'upstream/master'
anilkpandey Apr 24, 2020
bcaeb98
Update portsorch.cpp
anilkpandey Apr 24, 2020
602bf2b
Merge remote-tracking branch 'upstream/master'
anilkpandey Oct 29, 2020
61c0f75
Merge remote-tracking branch 'upstream/master'
anilkpandey Oct 29, 2020
a5c33d2
Merge remote-tracking branch 'upstream/master'
anilkpandey Dec 4, 2020
757cf70
Create .DS_Store
anilkpandey Dec 4, 2020
56e330e
update latest changes after synching with master
anilkpandey Dec 4, 2020
33f513f
fix lgtm issue
anilkpandey Dec 14, 2020
94bbb50
Delete .DS_Store
anilkpandey Dec 15, 2020
cac0096
Merge remote-tracking branch 'upstream/master'
anilkpandey Dec 15, 2020
47bcce9
Merge remote-tracking branch 'upstream/master'
anilkpandey Jan 6, 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
9 changes: 9 additions & 0 deletions orchagent/portsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2823,6 +2823,12 @@ bool PortsOrch::addLag(string lag_alias)
lag.m_members = set<string>();
m_portList[lag_alias] = lag;

/* Add lag name map to counter table */
anilkpandey marked this conversation as resolved.
Show resolved Hide resolved
FieldValueTuple tuple(lag_alias, sai_serialize_object_id(lag_id));
vector<FieldValueTuple> fields;
fields.push_back(tuple);
m_counterTable->set("",fields);
anilkpandey marked this conversation as resolved.
Show resolved Hide resolved

PortUpdate update = { lag, true };
notify(SUBJECT_TYPE_PORT_CHANGE, static_cast<void *>(&update));

Expand Down Expand Up @@ -2856,6 +2862,9 @@ bool PortsOrch::removeLag(Port lag)

SWSS_LOG_NOTICE("Remove LAG %s lid:%lx", lag.m_alias.c_str(), lag.m_lag_id);

/* Remove LAG name map from counter table */
m_counterTable->hdel("",lag.m_alias.c_str());
anilkpandey marked this conversation as resolved.
Show resolved Hide resolved

m_portList.erase(lag.m_alias);

PortUpdate update = { lag, false };
Expand Down