Skip to content

Instantly share code, notes, and snippets.

View ramonfontes's full-sized avatar
😷

Ramon Fontes ramonfontes

😷
View GitHub Profile
# Copyright (C) 2011 Nippon Telegraph and Telephone Corporation.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
import sys
import os
import subprocess
SUMO_HOME = os.path.join(os.path.dirname(__file__), "..", "..", "..", "..", "..", "/usr/share/sumo")
sys.path.append(os.path.join(os.environ.get("SUMO_HOME", SUMO_HOME), "tools"))
import traci # must be placed after the SUMO stuff above
PORT = 8813
#!/usr/bin/python
"""
This is the most simple example to showcase Containernet.
"""
from containernet.cli import CLI
from containernet.link import TCLink
from containernet.net import Containernet
from containernet.node import Docker
from mininet.node import Controller
from mininet.log import info, setLogLevel
#!/usr/bin/python
"""
This is the most simple example to showcase Containernet.
"""
from containernet.cli import CLI
from containernet.link import TCLink
from containernet.net import Containernet
from containernet.node import Docker
from mininet.node import Controller
from mininet.log import info, setLogLevel
#!/usr/bin/python
"""You can use this code to work with IEEE 802.11p.
*** You have to install wireless-regdb and CRDA.
*** Please refer to the user manual for further information
*** Tested with 5805 Mhz"""
from mininet.log import setLogLevel, info
from mininet.node import Controller
from mn_wifi.link import wmediumd, ITSLink
#!/usr/bin/python
"Setting the position of Nodes with wmediumd to calculate the interference"
from mininet.node import Controller
from mininet.log import setLogLevel, info
from mn_wifi.link import wmediumd
from mn_wifi.cli import CLI_wifi
from mn_wifi.net import Mininet_wifi
from mn_wifi.wmediumdConnector import interference
#!/usr/bin/python
from mininet.node import Controller
from mininet.log import setLogLevel, info
from mininet.cli import CLI
from mininet.net import Mininet
def topology():
"Create a network."
#!/usr/bin/python
from mininet.node import Controller
from mininet.log import setLogLevel, info
from mininet.cli import CLI
from mininet.net import Mininet
def topology():
"Create a network."
#!/usr/bin/python
'This example creates a simple network topology with 3 nodes'
from mininet.log import setLogLevel, info
from mn_wifi.cli import CLI_wifi
from mn_wifi.net import Mininet_wifi
from mn_wifi.sixLoWPAN.link import sixLoWPANLink
#!/usr/bin/python
from mininet.node import Controller
from mininet.log import setLogLevel, info
from mn_wifi.node import UserAP
from mn_wifi.cli import CLI_wifi
from mn_wifi.net import Mininet_wifi
from mn_wifi.link import wmediumd
from mn_wifi.wmediumdConnector import interference