A Discrete-Event Network Simulator
API
ns3::OpenFlowSwitchHelper Class Reference

Add capability to switch multiple LAN segments (IEEE 802.1D bridging) More...

#include "openflow-switch-helper.h"

+ Collaboration diagram for ns3::OpenFlowSwitchHelper:

Public Member Functions

 OpenFlowSwitchHelper ()
 
NetDeviceContainer Install (Ptr< Node > node, NetDeviceContainer c, Ptr< ns3::ofi::Controller > controller)
 This method creates an ns3::OpenFlowSwitchNetDevice with the attributes configured by OpenFlowSwitchHelper::SetDeviceAttribute, adds the device to the node, attaches the given NetDevices as ports of the switch, and sets up a controller connection using the provided Controller. More...
 
NetDeviceContainer Install (Ptr< Node > node, NetDeviceContainer c)
 This method creates an ns3::OpenFlowSwitchNetDevice with the attributes configured by OpenFlowSwitchHelper::SetDeviceAttribute, adds the device to the node, and attaches the given NetDevices as ports of the switch. More...
 
NetDeviceContainer Install (std::string nodeName, NetDeviceContainer c)
 This method creates an ns3::OpenFlowSwitchNetDevice with the attributes configured by OpenFlowSwitchHelper::SetDeviceAttribute, adds the device to the node, and attaches the given NetDevices as ports of the switch. More...
 
void SetDeviceAttribute (std::string n1, const AttributeValue &v1)
 Set an attribute on each ns3::OpenFlowSwitchNetDevice created by OpenFlowSwitchHelper::Install. More...
 

Private Attributes

ObjectFactory m_deviceFactory
 Object factory. More...
 

Detailed Description

Add capability to switch multiple LAN segments (IEEE 802.1D bridging)

Definition at line 37 of file openflow-switch-helper.h.

Constructor & Destructor Documentation

ns3::OpenFlowSwitchHelper::OpenFlowSwitchHelper ( )

Member Function Documentation

NetDeviceContainer ns3::OpenFlowSwitchHelper::Install ( Ptr< Node node,
NetDeviceContainer  c,
Ptr< ns3::ofi::Controller controller 
)

This method creates an ns3::OpenFlowSwitchNetDevice with the attributes configured by OpenFlowSwitchHelper::SetDeviceAttribute, adds the device to the node, attaches the given NetDevices as ports of the switch, and sets up a controller connection using the provided Controller.

Parameters
nodeThe node to install the device in
cContainer of NetDevices to add as switch ports
controllerThe controller connection.
Returns
A container holding the added net device.
NetDeviceContainer ns3::OpenFlowSwitchHelper::Install ( Ptr< Node node,
NetDeviceContainer  c 
)

This method creates an ns3::OpenFlowSwitchNetDevice with the attributes configured by OpenFlowSwitchHelper::SetDeviceAttribute, adds the device to the node, and attaches the given NetDevices as ports of the switch.

Parameters
nodeThe node to install the device in
cContainer of NetDevices to add as switch ports
Returns
A container holding the added net device.
NetDeviceContainer ns3::OpenFlowSwitchHelper::Install ( std::string  nodeName,
NetDeviceContainer  c 
)

This method creates an ns3::OpenFlowSwitchNetDevice with the attributes configured by OpenFlowSwitchHelper::SetDeviceAttribute, adds the device to the node, and attaches the given NetDevices as ports of the switch.

Parameters
nodeNameThe name of the node to install the device in
cContainer of NetDevices to add as switch ports
Returns
A container holding the added net device.
void ns3::OpenFlowSwitchHelper::SetDeviceAttribute ( std::string  n1,
const AttributeValue v1 
)

Set an attribute on each ns3::OpenFlowSwitchNetDevice created by OpenFlowSwitchHelper::Install.

Parameters
n1the name of the attribute to set
v1the value of the attribute to set

Member Data Documentation

ObjectFactory ns3::OpenFlowSwitchHelper::m_deviceFactory
private

Object factory.

Definition at line 97 of file openflow-switch-helper.h.


The documentation for this class was generated from the following file: