#include "oids.h"
#include "logger.h"
-using GTS::ACL;
+using SSMD::ACL;
ACL::ACL(unsigned id,
unsigned profileId,
pdu += vb;*/
}
-std::ostream & GTS::operator<<(std::ostream & stream, const ACL & acl)
+std::ostream & SSMD::operator<<(std::ostream & stream, const ACL & acl)
{
std::string oidValue;
// MAC
oidValue = swACLEtherRuleDstMacAddress;
oidValue += acl.getSuffix();
}
- stream << oidValue << ":" << acl._mac << " ";
+ stream << oidValue << " x " << acl._mac << " ";
// Permit rule
oidValue = swACLEtherRulePermit;
oidValue += acl.getSuffix();
- stream << oidValue << ":" << 2 << " ";
+ stream << oidValue << " i " << 2 << " ";
// Port
oidValue = swACLEtherRulePort;
oidValue += acl.getSuffix();
- stream << oidValue << ":" << acl._port << " ";
+ stream << oidValue << " x " << acl._port << " ";
// Shape
oidValue = swACLEtherRuleRxRate;
oidValue += acl.getSuffix();
- stream << oidValue << ":" << acl._shape << " ";
+ stream << oidValue << " i " << acl._shape << " ";
// Create ACL
oidValue = swACLEtherRuleRowStatus;
oidValue += acl.getSuffix();
- stream << oidValue << ":" << 4;
+ stream << oidValue << " i " << 4;
return stream;
}