Revision f32a5468 mininet/node.py

View differences:

mininet/node.py
661 661
        """Init.
662 662
           name: name to give controller
663 663
           noxArgs: list of args, or single arg, to pass to NOX"""
664
        if type( noxArgs ) != list:
665
            noxArgs = [ noxArgs ]
666 664
        if not noxArgs:
667 665
            noxArgs = [ 'packetdump' ]
666
        elif type( noxArgs ) != list:
667
            noxArgs = [ noxArgs ]
668 668

  
669 669
        if 'NOX_CORE_DIR' not in os.environ:
670 670
            exit( 'exiting; please set missing NOX_CORE_DIR env var' )

Also available in: Unified diff