X-Git-Url: https://osm.etsi.org/gitweb/?a=blobdiff_plain;f=src%2Femuvim%2Fcli%2Frest%2Fnetwork.py;h=4f6a32d47dbf8cfd82ea4aeea59f343c9ad776d9;hb=7b16852b0363d0569b3d8cd3325f0f579a79a311;hp=c87a924af3ec9188f39b90d85313119c424713b6;hpb=79ef6aee3dc52f49d1261e40ec5f258fb4372a1e;p=osm%2Fvim-emu.git diff --git a/src/emuvim/cli/rest/network.py b/src/emuvim/cli/rest/network.py index c87a924..4f6a32d 100755 --- a/src/emuvim/cli/rest/network.py +++ b/src/emuvim/cli/rest/network.py @@ -26,10 +26,8 @@ acknowledge the contributions of their colleagues of the SONATA partner consortium (www.sonata-nfv.eu). """ from requests import get,put, delete -from tabulate import tabulate import pprint import argparse -import json pp = pprint.PrettyPrinter(indent=4) @@ -61,7 +59,7 @@ class RestApiClient(): (args.get("endpoint"), vnf_src_name, vnf_dst_name), - json=json.dumps(params)) + json=params) pp.pprint(response.json()) def remove(self, args): @@ -80,7 +78,7 @@ class RestApiClient(): (args.get("endpoint"), vnf_src_name, vnf_dst_name), - json=json.dumps(params)) + json=params) pp.pprint(response.json()) def _parse_vnf_name(self, vnf_name_str): @@ -114,13 +112,12 @@ parser.add_argument( help="vnf name of the destination of the chain") parser.add_argument( "--weight", "-w", dest="weight", - help="weight metric to calculate the path") + help="weight edge attribute to calculate the path") parser.add_argument( "--match", "-m", dest="match", help="string holding extra matches for the flow entries") parser.add_argument( - "--bidirectional", "-b", dest="bidirectional", - action='store_true', + "--bidirectional", "-b", dest="bidirectional", action='store_true', help="add/remove the flow entries from src to dst and back") parser.add_argument( "--cookie", "-c", dest="cookie",