Skip to content
Snippets Groups Projects
Commit 4aa0b823 authored by lantz's avatar lantz
Browse files

Merge pull request #395 from cdburkard/patches/vlan_fail_output

check for vlan dependency
parents f9522b30 eef43402
No related branches found
No related tags found
No related merge requests found
......@@ -26,6 +26,8 @@
from mininet.node import Host
from mininet.topo import Topo
from mininet.util import quietRun
from mininet.log import error
class VLANHost( Host ):
......@@ -107,6 +109,11 @@ def exampleCustomTags( vlan ):
setLogLevel( 'info' )
if not quietRun( 'which vconfig' ):
error( "Cannot find command 'vconfig'\nThe packge",
"'vlan' is required in Ubuntu or Debian,",
"or 'vconfig' in Fedora\n" )
exit()
try:
vlan = int( sys.argv[ 1 ] )
except Exception:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment