Skip to content
Snippets Groups Projects
Commit eef43402 authored by cody burkard's avatar cody burkard
Browse files

check for vlan dependency

parent ec26c749
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