ZeroSDN Controller  1.0
A modular distributed Software-Defined Network Controller
 All Classes Files Functions Variables Enumerations Enumerator Friends Macros
TopologyModule Class Reference

#include <TopologyModule.hpp>

Inheritance diagram for TopologyModule:

Public Member Functions

 TopologyModule (uint64_t instanceId)
 
 ~TopologyModule ()
 
virtual zmf::data::ZmfOutReply handleRequest (const zmf::data::ZmfMessage &message, const zmf::data::ModuleUniqueId &sender) override
 
void UTAccessor_requestAllSwitchesFromSwitchRegistryModule ()
 
void UTAccessor_requestAllSwitchToSwitchLinksFromLinkDiscoveryModule ()
 
const std::map< uint64_t,
common::topology::Switch > & 
UTAccessor_getSwitchesCache ()
 
const std::vector
< common::topology::SwitchToSwitchLink > & 
UTAccessor_getSwitchToSwitchLinkCacheRegistered ()
 
const std::vector
< common::topology::SwitchToSwitchLink > & 
UTAccessor_getSwitchToSwitchLinkCacheUnregistered ()
 
zmf::data::ZmfOutReply UTAccessor_handleRequest (const zmf::data::ZmfMessage &message, const zmf::data::ModuleUniqueId &sender)
 
const common::topology::Topology UTAccessor_getCurrentStableTopology ()
 
void UTAccessor_handleSwitchEvent (const ZmfMessage &message, const ModuleUniqueId &id)
 
void UTAccessor_handleSwitchLinkEvent (const ZmfMessage &message, const ModuleUniqueId &id)
 
bool UTAccessor_isSwitchRegistered (uint64_t switchID, uint32_t switchPort)
 
virtual void disable ()
 

Protected Member Functions

virtual bool enable ()
 

Detailed Description

The TopologyModule collects information about Switches connected to the SDN network and the Links between those Switches.

Author
Tobias Freundorfer

Constructor & Destructor Documentation

TopologyModule::TopologyModule ( uint64_t  instanceId)
TopologyModule::~TopologyModule ( )

Member Function Documentation

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
messageThe Zmf message that was submitted.
senderThe 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: