1 #ifndef __SSMD_SWITCH_H__
2 #define __SSMD_SWITCH_H__
20 Switch(const Settings & settings,
22 const std::string & ip,
23 const std::string & readCommunity,
24 const std::string & writeCommunity,
26 Switch(const Switch & rvalue);
29 Switch & operator=(const Switch & rvalue);
31 const std::string & getIP() const { return _ip; }
32 const std::string & getReadCommunity() const { return _readCommunity; }
33 const std::string & getWriteCommunity() const { return _writeCommunity; }
34 unsigned getUplinkPort() const { return _uplinkPort; }
36 void addSubscriber(const Subscriber & subscriber);
41 const Settings & _settings;
45 std::string _readCommunity;
46 std::string _writeCommunity;
50 unsigned _nextDownACL;
52 std::vector<ACL> _acls;
56 bool checkProfiles(const CTarget & target);
57 bool dropACLs(const CTarget & target, std::ostream & stream);
58 bool dropACLsByTable(const CTarget & target, unsigned profileId, const SNMPTable & table, std::ostream & stream);
59 bool createACLs(const CTarget & target, std::ostream & stream);