mirror of
https://github.com/intrepidcs/libicsneo.git
synced 2026-09-25 18:29:45 +02:00
Device: Write MACsec configs by network ID
This commit is contained in:
committed by
Kyle Schwarz
parent
b54bf80c40
commit
f0b1341cdf
+2
-6
@@ -231,16 +231,16 @@ MACsecConfig::MACsecConfig(const DeviceType& deviceType) : type(deviceType) {
|
||||
case icsneo::DeviceType::Enum::RADMoon3:
|
||||
case icsneo::DeviceType::Enum::RADEpsilon:
|
||||
case icsneo::DeviceType::Enum::RADGigastar2:
|
||||
case icsneo::DeviceType::Enum::RADComet2:
|
||||
case icsneo::DeviceType::Enum::RADComet3:
|
||||
maxSecY = 2;
|
||||
maxRule = 2;
|
||||
maxSa = 4;
|
||||
binIndex = 0;
|
||||
break;
|
||||
default:
|
||||
maxSecY = 0;
|
||||
maxSa = 0;
|
||||
maxRule = 0;
|
||||
binIndex = 0;
|
||||
ReportEvent(APIEvent::Type::MACsecNotSupported, APIEvent::Severity::Error);
|
||||
return;
|
||||
}
|
||||
@@ -515,10 +515,6 @@ MACsecConfig::operator bool() const {
|
||||
return (maxSa != 0) || (maxSecY != 0) || (maxRule != 0);
|
||||
}
|
||||
|
||||
uint16_t MACsecConfig::getBinIndex() const {
|
||||
return binIndex;
|
||||
}
|
||||
|
||||
DeviceType MACsecConfig::getType() const {
|
||||
return type;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user