X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Femuvim%2Fapi%2Frest%2Fnetwork.py;h=9aab1e606eda51ad56788f8ca2170866c8599b51;hb=c9abfbec5b0e0ae589c8ad66426e207fbe2385b1;hp=f68507c96d83e0419fa26386444b03fa8c49cb0a;hpb=1085e7ee76191892a00a1b26f87a68cc468034b2;p=osm%2Fvim-emu.git diff --git a/src/emuvim/api/rest/network.py b/src/emuvim/api/rest/network.py index f68507c..9aab1e6 100755 --- a/src/emuvim/api/rest/network.py +++ b/src/emuvim/api/rest/network.py @@ -38,7 +38,7 @@ from flask import request import json import networkx -logging.basicConfig(level=logging.DEBUG) +logging.basicConfig() CORS_HEADER = {'Access-Control-Allow-Origin': '*'} @@ -81,17 +81,15 @@ class NetworkAction(Resource): # no check if vnfs are really connected to this datacenter... try: # check json payload - logging.info("json: {}".format(request.json)) - logging.info("args: {}".format(request.args)) + logging.debug("json: {}".format(request.json)) + logging.debug("args: {}".format(request.args)) - # when called directly with curl via REST data = request.json if data is None: data = request.args if data is None: data = {} - logging.info("data: {}".format(data)) vnf_src_name = data.get("vnf_src_name") vnf_dst_name = data.get("vnf_dst_name") vnf_src_interface = data.get("vnf_src_interface") @@ -151,4 +149,4 @@ class DrawD3jsgraph(Resource): links.append(edge_dict) json = {"nodes":nodes, "links":links} - return json, 200, CORS_HEADER \ No newline at end of file + return json, 200, CORS_HEADER