We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 5d5c169 commit 71751d1Copy full SHA for 71751d1
gearsyncd/gearboxparser.cpp
@@ -151,6 +151,12 @@ bool GearboxParser::parse()
151
val = phy["context_id"];
152
attr = std::make_pair("context_id", std::to_string(val.get<int>()));
153
attrs.push_back(attr);
154
+ if (phy.find("macsec_ipg") != phy.end())
155
+ {
156
+ val = phy["macsec_ipg"];
157
+ attr = std::make_pair("macsec_ipg", std::to_string(val.get<int>()));
158
+ attrs.push_back(attr);
159
+ }
160
if (phy.find("hwinfo") == phy.end())
161
{
162
SWSS_LOG_ERROR("missing 'hwinfo' field in 'phys' item %d in gearbox configuration", iter);
0 commit comments