dao/client/shell.py
def network_map_create(self, args):
        """Create new network map. Map name should be unique"""
        try:
            eval(args.port2number)
        except SyntaxError:
            raise exceptions.DAOException('--port2number is not a valid eval')
        try:
            eval(args.number2unit)
        except SyntaxError:
            raise exceptions.DAOException('--number2unit is not a valid eval')
        try:
            json.loads(args.network)
        except SyntaxError:
            raise exceptions.DAOException('--network is not a valid json')
        self._print_result(args,
                           self._call('network_map_create',
                                      name=args.name,
                                      port2number=args.port2number,
                                      number2unit=args.number2unit,
                                      pxe_nic=args.pxe,
                                      network=args.network))
Create new network map. Map name should be unique
Create new network map. Map name should be unique
Create new network map . Map name should be unique
def network_map_create(self, args):
        try:
            eval(args.port2number)
        except SyntaxError:
            raise exceptions.DAOException('--port2number is not a valid eval')
        try:
            eval(args.number2unit)
        except SyntaxError:
            raise exceptions.DAOException('--number2unit is not a valid eval')
        try:
            json.loads(args.network)
        except SyntaxError:
            raise exceptions.DAOException('--network is not a valid json')
        self._print_result(args,
                           self._call('network_map_create',
                                      name=args.name,
                                      port2number=args.port2number,
                                      number2unit=args.number2unit,
                                      pxe_nic=args.pxe,
                                      network=args.network))
def network_map_create ( self , args ) : try : eval ( args . port2number ) except SyntaxError : raise exceptions . DAOException ( '--port2number is not a valid eval' ) try : eval ( args . number2unit ) except SyntaxError : raise exceptions . DAOException ( '--number2unit is not a valid eval' ) try : json . loads ( args . network ) except SyntaxError : raise exceptions . DAOException ( '--network is not a valid json' ) self . _print_result ( args , self . _call ( 'network_map_create' , name = args . name , port2number = args . port2number , number2unit = args . number2unit , pxe_nic = args . pxe , network = args . network ) )
Create new network map.
Create new network map .
"""Create new network map. Map name should be unique"""
self
args