#include <TopologyModule.hpp>
The TopologyModule collects information about Switches connected to the SDN network and the Links between those Switches.
- Author
- Tobias Freundorfer
| TopologyModule::TopologyModule |
( |
uint64_t |
instanceId | ) |
|
| TopologyModule::~TopologyModule |
( |
| ) |
|
| void TopologyModule::disable |
( |
| ) |
|
|
virtual |
Called when the module should disable itself. This will clear all caches of this module.
| bool TopologyModule::enable |
( |
| ) |
|
|
protectedvirtual |
Called when the module should enable itself. Requests all Switches and SwitchToSwitchLinks and subscribes itself to the specific topics.
- Returns
- True if enable successful, False if enable failed or rejected
| zmf::data::ZmfOutReply TopologyModule::handleRequest |
( |
const zmf::data::ZmfMessage & |
message, |
|
|
const zmf::data::ModuleUniqueId & |
sender |
|
) |
| |
|
overridevirtual |
Handles incoming requests of types 1.) kGetTopologyRequest and replies with the current stable topology.
- Parameters
-
| message | The Zmf message that was submitted. |
| sender | The sender that sent the message. |
- Returns
- True if we want to respond on the request, false otherwise
| const common::topology::Topology TopologyModule::UTAccessor_getCurrentStableTopology |
( |
| ) |
|
|
inline |
| const std::map<uint64_t, common::topology::Switch>& TopologyModule::UTAccessor_getSwitchesCache |
( |
| ) |
|
|
inline |
| const std::vector<common::topology::SwitchToSwitchLink>& TopologyModule::UTAccessor_getSwitchToSwitchLinkCacheRegistered |
( |
| ) |
|
|
inline |
| const std::vector<common::topology::SwitchToSwitchLink>& TopologyModule::UTAccessor_getSwitchToSwitchLinkCacheUnregistered |
( |
| ) |
|
|
inline |
| zmf::data::ZmfOutReply TopologyModule::UTAccessor_handleRequest |
( |
const zmf::data::ZmfMessage & |
message, |
|
|
const zmf::data::ModuleUniqueId & |
sender |
|
) |
| |
|
inline |
| void TopologyModule::UTAccessor_handleSwitchEvent |
( |
const ZmfMessage & |
message, |
|
|
const ModuleUniqueId & |
id |
|
) |
| |
|
inline |
| void TopologyModule::UTAccessor_handleSwitchLinkEvent |
( |
const ZmfMessage & |
message, |
|
|
const ModuleUniqueId & |
id |
|
) |
| |
|
inline |
| bool TopologyModule::UTAccessor_isSwitchRegistered |
( |
uint64_t |
switchID, |
|
|
uint32_t |
switchPort |
|
) |
| |
|
inline |
| void TopologyModule::UTAccessor_requestAllSwitchesFromSwitchRegistryModule |
( |
| ) |
|
|
inline |
| void TopologyModule::UTAccessor_requestAllSwitchToSwitchLinksFromLinkDiscoveryModule |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following files: