void VrrpManager::removeVrrpInterfaces () { InterfaceList interfaces = Netlink::interfaces(); for (InterfaceList::const_iterator interface = interfaces.begin(); interface != interfaces.end(); ++interface) { if (interface->second.substr(0, 4) == "vrrp") Netlink::removeInterface(interface->first); } }
std::vector<IComponent*> CComponentManager::Script_GetComponentsWithInterface(void* cbdata, int iid) { CComponentManager* componentManager = static_cast<CComponentManager*> (cbdata); std::vector<IComponent*> ret; InterfaceList ents = componentManager->GetEntitiesWithInterface(iid); for (InterfaceList::const_iterator it = ents.begin(); it != ents.end(); ++it) ret.push_back(it->second); // TODO: maybe we should exclude local entities return ret; }