1 #ifndef __GTS_SWITCH_H__
2 #define __GTS_SWITCH_H__
19 Switch(const Settings & settings,
21 const std::string & ip,
22 const std::string & readCommunity,
23 const std::string & writeCommunity,
25 Switch(const Switch & rvalue);
28 Switch & operator=(const Switch & rvalue);
30 const std::string & getIP() const { return _ip; }
31 const std::string & getReadCommunity() const { return _readCommunity; }
32 const std::string & getWriteCommunity() const { return _writeCommunity; }
33 unsigned getUplinkPort() const { return _uplinkPort; }
35 void addSubscriber(const Subscriber & subscriber);
40 const Settings & _settings;
44 std::string _readCommunity;
45 std::string _writeCommunity;
49 unsigned _nextDownACL;
51 std::vector<ACL> _acls;
55 bool checkProfiles(const CTarget & target);
56 bool dropACLs(const CTarget & target);
57 bool dropACLsByTable(const CTarget & target, unsigned profileId, const SNMPTable & table);
58 bool createACLs(const CTarget & target);