]> git.stg.codes - ssmd.git/blobdiff - src/acl.cpp
Removed GTS string.
[ssmd.git] / src / acl.cpp
index a882182de03917982627ce9f88fc19394a4b9a17..f3f6b778788481e3081c0bf3bfac6cfb76bd3a45 100644 (file)
@@ -7,7 +7,7 @@
 #include "oids.h"
 #include "logger.h"
 
-using GTS::ACL;
+using SSMD::ACL;
 
 ACL::ACL(unsigned id,
          unsigned profileId,
@@ -106,7 +106,7 @@ void ACL::appendPdu(Pdu & pdu) const
     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
@@ -117,27 +117,27 @@ std::ostream & GTS::operator<<(std::ostream & stream, const ACL & acl)
         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;
 }