A Discrete-Event Network Simulator
API
openflow-switch Namespace Reference

Variables

 app = onoff.Install(terminals.Get(0))
 
 container = ns.NodeContainer()
 
 controller = ns.ofi.DropController()
 
 csma = ns.CsmaHelper()
 
 csmaSwitch = ns.NodeContainer()
 
 internet = ns.InternetStackHelper()
 
 ipv4 = ns.Ipv4AddressHelper()
 
 link = csma.Install(container)
 
 onoff
 
int port = 9
 
 sink
 
 switchDevices = ns.NetDeviceContainer()
 
 switchNode = csmaSwitch.Get(0)
 
 swtch = ns.OpenFlowSwitchHelper()
 
 terminalDevices = ns.NetDeviceContainer()
 
 terminals = ns.NodeContainer()
 

Variable Documentation

◆ app

◆ container

◆ controller

openflow-switch.controller = ns.ofi.DropController()

Definition at line 55 of file openflow-switch.py.

Referenced by ns3::OpenFlowSwitchHelper.Install().

◆ csma

openflow-switch.csma = ns.CsmaHelper()

Definition at line 39 of file openflow-switch.py.

◆ csmaSwitch

openflow-switch.csmaSwitch = ns.NodeContainer()

Definition at line 36 of file openflow-switch.py.

Referenced by CsmaBridgeTestCase.DoRun().

◆ internet

openflow-switch.internet = ns.InternetStackHelper()

Definition at line 61 of file openflow-switch.py.

◆ ipv4

openflow-switch.ipv4 = ns.Ipv4AddressHelper()

Definition at line 64 of file openflow-switch.py.

◆ link

openflow-switch.link = csma.Install(container)

Definition at line 49 of file openflow-switch.py.

Referenced by ns3::QosTxop.QosTxop(), ns3::TopologyReader.AddLink(), ns3::dsr::DsrRouteCache.AddRoute_Link(), ns3::WifiMac.ApplyTidLinkMapping(), ns3::WifiMac.BlockUnicastTxOnLinks(), ns3::DpdkNetDevice.CheckAllPortsLinkStatus(), ns3::WifiMac.ConfigureContentionWindow(), ns3::WifiMac.ConfigureStandard(), ns3::StaWifiMac.Disassociated(), ns3::Txop.DoInitialize(), ns3::WifiMac.DoInitialize(), CsmaBridgeTestCase.DoRun(), AmpduAggregationTest.DoSetup(), ns3::dsr::DsrErrorBuffer.DropPacketForErrLink(), ns3::RocketfuelTopologyReader.GenerateFromMapsFile(), ns3::RocketfuelTopologyReader.GenerateFromWeightsFile(), ns3::Txop.GetAifsns(), ns3::WifiMac.GetEhtSupported(), ns3::WifiMac.GetHeSupported(), ns3::WifiMac.GetHtSupported(), ns3::WifiMac.GetLinkForPhy(), ns3::WifiMac.GetLinkIdByAddress(), ns3::WifiMac.GetLocalAddress(), ns3::Txop.GetMaxCws(), ns3::Txop.GetMinCws(), ns3::WifiMac.GetMldAddress(), ns3::StaWifiMac.GetMultiLinkElement(), ns3::QosTxop.GetRemainingTxop(), ns3::StaWifiMac.GetSetupLinkIds(), ns3::Txop.GetTxopLimits(), ns3::QosTxop.GetTxopStartTime(), ns3::WifiMac.GetVhtSupported(), ns3::dsr::DsrPassiveBuffer.LinkEqual(), ns3::StaWifiMac.MissedBeacons(), ns3::QosTxop.MuEdcaTimerRunning(), ns3::QosTxop.NotifyChannelReleased(), ns3::StaWifiMac.NotifyEmlsrModeChanged(), ns3::Txop.NotifyOn(), ns3::StaWifiMac.NotifySwitchingEmlsrLink(), ns3::dot11s::PeerManagementProtocol.PeerLinkStatus(), ns3::olsr::RoutingProtocol.ProcessHello(), ns3::InetTopologyReader.Read(), ns3::OrbisTopologyReader.Read(), ns3::WifiMac.Receive(), ns3::StaWifiMac.ReceiveAssocResp(), ns3::Txop.ResetCw(), ns3::WifiMac.ResetWifiPhys(), ns3::StaWifiMac.ScanningTimeout(), ns3::StaWifiMac.SendAssociationRequest(), ns3::ApWifiMac.SendOneBeacon(), ns3::ApWifiMac.SetAid(), ns3::Txop.SetAifsns(), ns3::Txop.SetMaxCw(), ns3::Txop.SetMaxCws(), ns3::Txop.SetMinCw(), ns3::Txop.SetMinCws(), ns3::StaWifiMac.SetPmModeAfterAssociation(), ns3::StaWifiMac.SetPowerSaveMode(), ns3::WifiMac.SetPromisc(), ns3::Txop.SetTxopLimits(), ns3::Txop.StartBackoffNow(), ns3::QosTxop.StartMuEdcaTimerNow(), ns3::StaWifiMac.StartScanning(), ns3::WifiMac.SwapLinks(), ns3::StaWifiMac.TxOk(), ns3::WifiMac.UnblockUnicastTxOnLinks(), ns3::Txop.UpdateBackoffSlotsNow(), ns3::Txop.UpdateFailedCw(), ns3::WifiMac.UpdateLinkId(), ns3::ApWifiMac.UpdateShortPreambleEnabled(), ns3::ApWifiMac.UpdateShortSlotTimeEnabled(), and ns3::dsr::DsrRouteCache.UseExtends().

◆ onoff

◆ port

int openflow-switch.port = 9

Definition at line 68 of file openflow-switch.py.

◆ sink

openflow-switch.sink
Initial value:
1 = ns.PacketSinkHelper(
2  "ns3::UdpSocketFactory", ns.InetSocketAddress(ns.Ipv4Address.GetAny(), port).ConvertTo()
3 )

Definition at line 80 of file openflow-switch.py.

◆ switchDevices

openflow-switch.switchDevices = ns.NetDeviceContainer()

Definition at line 44 of file openflow-switch.py.

Referenced by CsmaBridgeTestCase.DoRun(), and BridgeTest.DoSetup().

◆ switchNode

openflow-switch.switchNode = csmaSwitch.Get(0)

Definition at line 53 of file openflow-switch.py.

Referenced by CsmaBridgeTestCase.DoRun(), and BridgeTest.DoSetup().

◆ swtch

◆ terminalDevices

openflow-switch.terminalDevices = ns.NetDeviceContainer()

Definition at line 43 of file openflow-switch.py.

Referenced by CsmaBridgeTestCase.DoRun().

◆ terminals

openflow-switch.terminals = ns.NodeContainer()

Definition at line 33 of file openflow-switch.py.

Referenced by CsmaBridgeTestCase.DoRun().