X-Git-Url: https://osm.etsi.org/gitweb/?p=osm%2FRO.git;a=blobdiff_plain;f=openmano;fp=openmano;h=ec588a98546b3997d22e64c0679959bddcc75252;hp=1b88373ad94600f6f9bc515f613a58ff22277a47;hb=0abcd732a7aaf919f1be408fe946e52920e2702d;hpb=c589790daafb5b2837e18c2ece34d09b9095279a diff --git a/openmano b/openmano index 1b88373a..ec588a98 100755 --- a/openmano +++ b/openmano @@ -1123,8 +1123,13 @@ def sdn_controller_create(args): tenant = _get_tenant() headers_req = {'Accept': 'application/json', 'content-type': 'application/json'} - if not (args.ip and args.port and args.dpid and args.type): - raise OpenmanoCLIError("The following arguments are required: ip, port, dpid, type") + error_msg=[] + if not args.ip: error_msg.append("'ip'") + if not args.port: error_msg.append("'port'") + if not args.dpid: error_msg.append("'dpid'") + if not args.type: error_msg.append("'type'") + if error_msg: + raise OpenmanoCLIError("The following arguments are required: " + ",".join(error_msg)) controller_dict = {} controller_dict['name'] = args.name