+std::ostream & SSMD::operator<<(std::ostream & stream, const ACL & acl)
+{
+ std::string oidValue;
+ // MAC
+ if (acl._isUpload) {
+ oidValue = swACLEtherRuleSrcMacAddress;
+ oidValue += acl.getSuffix();
+ } else {
+ oidValue = swACLEtherRuleDstMacAddress;
+ oidValue += acl.getSuffix();
+ }
+ stream << oidValue << " x " << acl._mac << " ";
+
+ // Permit rule
+ oidValue = swACLEtherRulePermit;
+ oidValue += acl.getSuffix();
+ stream << oidValue << " i " << 2 << " ";
+
+ // Port
+ oidValue = swACLEtherRulePort;
+ oidValue += acl.getSuffix();
+ stream << oidValue << " x " << acl._port << " ";
+
+ // Shape
+ oidValue = swACLEtherRuleRxRate;
+ oidValue += acl.getSuffix();
+ stream << oidValue << " i " << acl._shape << " ";
+
+ // Create ACL
+ oidValue = swACLEtherRuleRowStatus;
+ oidValue += acl.getSuffix();
+ stream << oidValue << " i " << 4;
+
+ return stream;
+}
+