projects
/
osm
/
vim-emu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
fix issues with installing docker management networks
[osm/vim-emu.git]
/
src
/
emuvim
/
cli
/
rest
/
monitor.py
diff --git
a/src/emuvim/cli/rest/monitor.py
b/src/emuvim/cli/rest/monitor.py
index
7e9b839
..
7af1fbb
100755
(executable)
--- a/
src/emuvim/cli/rest/monitor.py
+++ b/
src/emuvim/cli/rest/monitor.py
@@
-25,11
+25,10
@@
the Horizon 2020 and 5G-PPP programmes. The authors would like to
acknowledge the contributions of their colleagues of the SONATA
partner consortium (www.sonata-nfv.eu).
"""
acknowledge the contributions of their colleagues of the SONATA
partner consortium (www.sonata-nfv.eu).
"""
+
from requests import get, put, delete
from requests import get, put, delete
-from tabulate import tabulate
import pprint
import argparse
import pprint
import argparse
-import json
from emuvim.cli import prometheus
pp = pprint.PrettyPrinter(indent=4)
from emuvim.cli import prometheus
pp = pprint.PrettyPrinter(indent=4)
@@
-50,7
+49,7
@@
class RestApiClient():
vnf_name = self._parse_vnf_name(args.get("vnf_name"))
vnf_interface = self._parse_vnf_interface(args.get("vnf_name"))
vnf_name = self._parse_vnf_name(args.get("vnf_name"))
vnf_interface = self._parse_vnf_interface(args.get("vnf_name"))
- response = put("%s/restapi/monitor/%s/%s/%s" %
+ response = put("%s/restapi/monitor/
interface/
%s/%s/%s" %
(args.get("endpoint"),
vnf_name,
vnf_interface,
(args.get("endpoint"),
vnf_name,
vnf_interface,
@@
-61,7
+60,7
@@
class RestApiClient():
vnf_name = self._parse_vnf_name(args.get("vnf_name"))
vnf_interface = self._parse_vnf_interface(args.get("vnf_name"))
vnf_name = self._parse_vnf_name(args.get("vnf_name"))
vnf_interface = self._parse_vnf_interface(args.get("vnf_name"))
- response = delete("%s/restapi/monitor/%s/%s/%s" %
+ response = delete("%s/restapi/monitor/
interface/
%s/%s/%s" %
(args.get("endpoint"),
vnf_name,
vnf_interface,
(args.get("endpoint"),
vnf_name,
vnf_interface,
@@
-72,7
+71,7
@@
class RestApiClient():
vnf_name = self._parse_vnf_name(args.get("vnf_name"))
vnf_interface = self._parse_vnf_interface(args.get("vnf_name"))
vnf_name = self._parse_vnf_name(args.get("vnf_name"))
vnf_interface = self._parse_vnf_interface(args.get("vnf_name"))
- response = put("%s/restapi/monitor/%s/%s/%s/%s" %
+ response = put("%s/restapi/monitor/
flow/
%s/%s/%s/%s" %
(args.get("endpoint"),
vnf_name,
vnf_interface,
(args.get("endpoint"),
vnf_name,
vnf_interface,
@@
-85,7
+84,7
@@
class RestApiClient():
vnf_name = self._parse_vnf_name(args.get("vnf_name"))
vnf_interface = self._parse_vnf_interface(args.get("vnf_name"))
vnf_name = self._parse_vnf_name(args.get("vnf_name"))
vnf_interface = self._parse_vnf_interface(args.get("vnf_name"))
- response = delete("%s/restapi/monitor/%s/%s/%s/%s" %
+ response = delete("%s/restapi/monitor/
flow/
%s/%s/%s/%s" %
(args.get("endpoint"),
vnf_name,
vnf_interface,
(args.get("endpoint"),
vnf_name,
vnf_interface,