Skip to content

Commit

Permalink
Refine field name in CONFIG_DB according to yang model change
Browse files Browse the repository at this point in the history
  • Loading branch information
superchild committed Nov 3, 2021
1 parent a0de06d commit 75ddeea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions cfgmgr/intfmgr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -672,7 +672,7 @@ bool IntfMgr::doIntfGeneralTask(const vector<string>& keys,
const auto &field = fvField(idx);
const auto &value = fvValue(idx);

if (field == "gwmac")
if (field == "gateway_mac")
{
gwmac = value;
}
Expand Down Expand Up @@ -846,7 +846,7 @@ void IntfMgr::doSagTask(const vector<string>& keys,
const auto &field = fvField(idx);
const auto &value = fvValue(idx);

if (field == "gwmac")
if (field == "gateway_mac")
{
mac = value;
}
Expand All @@ -855,7 +855,7 @@ void IntfMgr::doSagTask(const vector<string>& keys,
vector<FieldValueTuple> fvAppSag;
if (op == SET_COMMAND)
{
FieldValueTuple gwmac("gwmac", MacAddress(mac).to_string());
FieldValueTuple gwmac("gateway_mac", MacAddress(mac).to_string());
fvAppSag.push_back(gwmac);
m_appSagTableProducer.set("GLOBAL", fvAppSag);
}
Expand Down
2 changes: 1 addition & 1 deletion orchagent/intfsorch.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1083,7 +1083,7 @@ void IntfsOrch::doSagTask(vector<FieldValueTuple> data, const string& op)
const auto &field = fvField(idx);
const auto &value = fvValue(idx);
SWSS_LOG_NOTICE("process key %s, value %s", field.c_str(), value.c_str());
if (field == "gwmac")
if (field == "gateway_mac")
{
sag_mac_str = value;
}
Expand Down

0 comments on commit 75ddeea

Please sign in to comment.