X-Git-Url: https://git.stg.codes/ssmd.git/blobdiff_plain/ae26516a8828d54ab7c0e0bca92031a54a15ed62..HEAD:/include/switch.h diff --git a/include/switch.h b/include/switch.h index fc43284..bd99652 100644 --- a/include/switch.h +++ b/include/switch.h @@ -1,13 +1,14 @@ -#ifndef __GTS_SWITCH_H__ -#define __GTS_SWITCH_H__ +#ifndef __SSMD_SWITCH_H__ +#define __SSMD_SWITCH_H__ #include #include +#include class Snmp; class CTarget; -namespace GTS { +namespace SSMD { class Settings; class Subscriber; @@ -50,10 +51,12 @@ class Switch { std::vector _acls; + bool _aclsCreated; + bool checkProfiles(const CTarget & target); - bool dropACLs(const CTarget & target); - bool dropACLsByTable(const CTarget & target, unsigned profileId, const SNMPTable & table); - bool createACLs(const CTarget & target); + bool dropACLs(const CTarget & target, std::ostream & stream); + bool dropACLsByTable(const CTarget & target, unsigned profileId, const SNMPTable & table, std::ostream & stream); + bool createACLs(const CTarget & target, std::ostream & stream); }; }