@utils.arg('server', metavar='<server>', help=_('Name or ID of server.'))
@utils.arg('network_id', metavar='<network-id>', help=_('Network ID.'))
def do_add_fixed_ip(cs, args):
 server = _find_server(cs, args.server)
 server.add_fixed_ip(args.network_id)

@ utils . arg ( 'server' , metavar = '<server>' , help = _ ( 'Name or ID of server.' ) ) @ utils . arg ( 'network_id' , metavar = '<network-id>' , help = _ ( 'Network ID.' ) ) def do_add_fixed_ip ( cs , args ) : server = _find_server ( cs , args . server ) server . add_fixed_ip ( args . network_id )
add new ip address on a network to server .