removed more unnecessary ifconfigs
switched back to node.cmd for OVS commands. this is faster..
added some documentation
fixed issue with regex matching
adding old changes
few small fixes to syntax errors
removed many of the commands being run to maximize startup performance
Reverting the disable signals change
Merge branch 'master' into devel/pty
revised comment on defaultController function
restructured defaultController into a function
fixed command parameter
added default controller class
Adding listen socket to UserSwitch when there is no listenPort set
Merge pull request #315 from cdburkard/patches/fix_bindpy
Added support for mount namespaces in bind.py
Restore non-mnexec pid detection for background commands
Fix pid regex to eat \r\n
Set default printPid back to True
Fix findPid since pty uses \r\n as line ending
conforming to mininet style
Possibly faster check for sentinel.
Don't set self.waiting twice
Avoid overhead of another process (env) in startShell()
Attach a pty to each node's bash process
This should enable node commands that are expecting a tty tobehave better.
Whitespace changes in OVSSwitch.
added documentation for HostWithPrivateDirs
mountprivatedirs is no longer needed
added persistence option to HostWithPrivateDirs. also attached mount namespaces when mnexec -a is specified
Merge pull request #313 from cdburkard/master
ovs port numbering bug fix
Added support for mount namespaces in bind.py. Also moved it to the node class as a host type.
Merge pull request #310 from rlane/ivs-verbose
IVSSwitch: add an option to control the --verbose flag
conforming to mininet python style
removing debugging messages
rearranged code for elegance
adding ovs version detection to fix port numbering bug
net: allow batch shutdown of multiple types of switches
Each switch class will be called to shutdown its own instances.
IVSSwitch: support batch shutdown
Not a single command like the OVS one, but it still greatly decreases theshutdown time.
This does assume that stop() is called after batchShutdown(), which is true inthe current mininet code.
Add ability for for OVS switch start connect to controllers using protocols other than TCP.
net.addController( 'c0', protocol='ssl' )
This now allows OVS to connect to a controller using SSL. The default of protocol is 'tcp'as it currently is.
Merge pull request #286 from lantz/devel/ovsbatch
Enable batch startup/shutdown of OVS
Not perfect, but it moves us forward at least.
Merge pull request #290 from backb1/patch/netstatnumeric
Netstat: do not resolve addresses
IVSSwitch: wait for ivs to terminate before tearing down node
This was a problem when running IVS in a container. IVS would begin the processof closing controller connections on receiving SIGTERM, but often mininet wouldhave continued on and removed the control network interface from the container...
Use a single ovs-vsctl command for speed/atomicity
Fix default of in-band control for OVS.fixes #279
Add support for batch shutdown of OVS switches.
This saves about 10 seconds for a 200 switch network.
Minor tweak of return value.
Check (and canonicalize) dpid arguments to Switch()
This seems slightly ugly, but it has bitten many people.
Canonicalize dpid by removing colons and padding with zeroscloses #268
userspace switch can be reached on unix port by dpctl
don't crash when link is TCLink but without options
caused by optimized return in link.py#275 in TCIntf.config()
node: kill entire process group in terminate
mnexec already puts the shell into its own process group. Killing the entireprocess group cleans up after any background processes the user left running.
Do not resolve addresses
IVSSwitch: bring up lo interface
Merge pull request #210 from rlane/ivs-opts
IVSSwitch: support opts constructor parameter
This parameter is already supported by the other switch classes.
Check for `Connected` in checkListening()
changed CLI to MininetFacade; a great deal of logic also changed
Delete leftover TAP interface from OVS with datapath=userfixes #199
Removing test prints from user switch merge
Merge branch 'adf-userswitch-tclink' of github.com:adferguson/mininet into adferguson-adf-userswitch-tclinkOnly sleep and reapply if slicing is enabled
Merge branch 'ivs' of https://github.com/rlane/mininet into rlane-ivs
IVSSwitch: support running IVS in a namespace
This change uses the `Node.cmd` method instead of `Popen`. The `cmd` methodsends the input to a shell which may be in another namespace (if --innamespaceis in use), while `Popen` would always run in the root namespace.
Style changes in mininet/node.py and removing used import in mininet/link.py
CPULimitedHost cleanup() calls superclass methodfixes #161
Clean up intfs in root NS, and avoid deleting HW intfs
It appears that under certain conditions, such as when anamespace exits, both ends of a veth pair may get dumpedinto the root namespace. We therefore now remove an interfaceboth from its home namespace and from the root namespace.
IVSSwitch: remove namespace warnings
IVS works fine using --innamespace.
IVSSwitch: use ovs-ofctl for dpctl functionality
IVSSwitch: add support for dpctl
dpctl is not included with IVS. The user will need to obtain it from theOpenFlow reference repository.
add support for the IVS virtual switch
IVS is an open source virtual switch available for download athttps://github.com/floodlight/ivs. It uses the openvswitchkernel module.
Workaround: add default dpopts='--no-slicing' to UserSwitch
This disables slicing by default but fixes bandwidth limits.Eventually we want to enable both to work together, but for nowthis enables one or the other depending on the dpopts setting.
Workaround: add dpopts to UserSwitch
Currently, slicing on the user switch breaks bandwidth limits.We don't yet have a good way of using both of them at the same time.I'm inclined to turn off slicing by default, but I have to thinkabout it and also see if any one is using it...
Ensure dpid is a valid hex string in OVSSwitch
Fix some pylint messages.
Add Switch.connected() and OVSSwitch.controllerUUIDs()
Minor comment change and text change.
Clean up (and fix) OVSSwitch fast reconnect
Fix setDefaultRoute to work with passed parameters.
Merge pull request #150 from MurphyMc/ovs_fast_reconnect
node: Make OVS switches reconnect quickly
Don't flush ALL routes and enable OPTIONAL default route/gw
fixes #152 hopefully
Ordinarily, OVS switches back off when they can't reach their controllers.Under the type of scenarios where Mininet is used, I think this isprobably just inconvenient. This patch set controllers to attempt toreconnect every second.
node: Allow OVSSwitch to run in userspace mode
This adds a datapath parameter to OVSSwitch which allows one to tell OVS torun in userspace mode rather than kernel mode. From the commandline, thisis --switch=ovsk,datapath=user.
Note that this makes "ovsk" and the OVSKernelSwitch alias misnomers. Since...
Fix method name mismatch for setDefaultRoute.
Change OVSSwitch.dpctl() to call ovs-ofctl
This should fix the problem of dump-flows not showing the OpenFlowflow table flows and only showing cached kernel flow table flows.
allow user switch to be used with TCIntf's
Change popen() to detach from terminal/process group.This may or may not be the right thing to do - an alternativewould be to ignore SIGINT, but that would make the popen()job unkillable by normal means! So we'll try this and seehow well it works.Fixes #124
Tag node bash processes and add attach scriptTry invoking bash processes with -s mininet:host,for easy identification of hosts. This enableseasy attachment using the util/m script.closes #121
Fix Node.MAC to return intf.MAC rather than intf.IPFixes #89 ; Thanks to Nikhil S. Menon for the bug report
pass code check
node: verify telnet installation for controller checking
Reported-by: Julius Bachnick
Fix whitespace error.
Merge branch '2.0dev' into 2.0merge
Conflicts: .gitignore .pylint examples/miniedit.py mininet/node.py mininet/util.py util/install.sh util/vm/install-mininet-vm.sh
node: add OVS passive listening support
node: Use space, rather than comma, to separate controllersfor OVS
Otherwise, OVS thinks the second controller is a parameter of the first, andonly creates one controller entry as seen in 'ovs-vsctl show'.
Fix SSHD example by generalizing input intf args
A number of functions in node.py look like this: return self.intf( intf ).<other stuff>
Previously, self.intf(...) in Node would expect a string name for aninterface and return None if an object was passed in instead of a...
pep8: Fix E127 continuation line over-indented
There are a bunch of these remaining, but I don't think the right course isto 'fix' all of them to make pep8 happy, but instead to either changethe test in pep8 to consider that a continuation line may itself...
pep8: fix E128 continuation line under-indented errors
I wasn't sure this was worth fixing at first, but it does look more readablenow.
pep8: Fix E121/126, continuation line indention
pep8: Fix E121 continuation line indentation is not a multiple of four
pep8: Fix E203 whitespace before punctutation
Fix multi-controller/failover support on User, OVSLegacy switches