This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # 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, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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." |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #!/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 |
NewerOlder