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... | |
Add capability to switch multiple LAN segments (IEEE 802.1D bridging)
Definition at line 37 of file openflow-switch-helper.h.
| ns3::OpenFlowSwitchHelper::OpenFlowSwitchHelper | ( | ) |
| 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.
| node | The node to install the device in |
| c | Container of NetDevices to add as switch ports |
| controller | The controller connection. |
| 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.
| node | The node to install the device in |
| c | Container of NetDevices to add as switch ports |
| 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.
| nodeName | The name of the node to install the device in |
| c | Container of NetDevices to add as switch ports |
| void ns3::OpenFlowSwitchHelper::SetDeviceAttribute | ( | std::string | n1, |
| const AttributeValue & | v1 | ||
| ) |
Set an attribute on each ns3::OpenFlowSwitchNetDevice created by OpenFlowSwitchHelper::Install.
| n1 | the name of the attribute to set |
| v1 | the value of the attribute to set |
|
private |
Object factory.
Definition at line 97 of file openflow-switch-helper.h.