ns-3
ns3::OpenFlowSwitchHelper Class Reference

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

#include <openflow-switch-helper.h>

List of all members.

Public Member Functions

void SetDeviceAttribute (std::string n1, const AttributeValue &v1)
NetDeviceContainer Install (Ptr< Node > node, NetDeviceContainer c, Ptr< ns3::ofi::Controller > controller)
NetDeviceContainer Install (Ptr< Node > node, NetDeviceContainer c)
NetDeviceContainer Install (std::string nodeName, NetDeviceContainer c)

Detailed Description

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


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

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