Skip to content

Commit 71751d1

Browse files
authored
[macsec] Support setting IPG by gearbox_config.json (#2051)
1 parent 5d5c169 commit 71751d1

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

gearsyncd/gearboxparser.cpp

+6
Original file line numberDiff line numberDiff line change
@@ -151,6 +151,12 @@ bool GearboxParser::parse()
151151
val = phy["context_id"];
152152
attr = std::make_pair("context_id", std::to_string(val.get<int>()));
153153
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+
}
154160
if (phy.find("hwinfo") == phy.end())
155161
{
156162
SWSS_LOG_ERROR("missing 'hwinfo' field in 'phys' item %d in gearbox configuration", iter);

0 commit comments

Comments
 (0)