Revision eef43402

View differences:

examples/vlanhost.py
26 26

  
27 27
from mininet.node import Host
28 28
from mininet.topo import Topo
29
from mininet.util import quietRun
30
from mininet.log import error
29 31

  
30 32
class VLANHost( Host ):
31 33

  
......
107 109

  
108 110
    setLogLevel( 'info' )
109 111

  
112
    if not quietRun( 'which vconfig' ):
113
        error( "Cannot find command 'vconfig'\nThe packge",
114
               "'vlan' is required in Ubuntu or Debian,",
115
               "or 'vconfig' in Fedora\n" )
116
        exit()
110 117
    try:
111 118
        vlan = int( sys.argv[ 1 ] )
112 119
    except Exception:

Also available in: Unified diff