projects
/
osm
/
vim-emu.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
added REST endpoint to default topo example to let it work with the CLI
[osm/vim-emu.git]
/
src
/
emuvim
/
cli
/
monitor.py
diff --git
a/src/emuvim/cli/monitor.py
b/src/emuvim/cli/monitor.py
index
79ff25b
..
20bfc25
100755
(executable)
--- a/
src/emuvim/cli/monitor.py
+++ b/
src/emuvim/cli/monitor.py
@@
-1,12
+1,13
@@
"""
\r
son-emu monitor CLI
\r
(c) 2016 by Manuel Peuster <manuel.peuster@upb.de>
\r
"""
\r
son-emu monitor CLI
\r
(c) 2016 by Manuel Peuster <manuel.peuster@upb.de>
\r
+Steven Van Rossem <steven.vanrossem@intec.ugent.be>
\r
"""
\r
\r
import argparse
\r
import pprint
\r
import zerorpc
\r
"""
\r
\r
import argparse
\r
import pprint
\r
import zerorpc
\r
-import prometheus
\r
+
from emuvim.cli
import prometheus
\r
\r
pp = pprint.PrettyPrinter(indent=4)
\r
\r
\r
pp = pprint.PrettyPrinter(indent=4)
\r
\r
@@
-30,7
+31,7
@@
class ZeroRpcClient(object):
# call the local method with the same name as the command arg
\r
getattr(self, args["command"])(args)
\r
else:
\r
# call the local method with the same name as the command arg
\r
getattr(self, args["command"])(args)
\r
else:
\r
- print
"Command not implemented."
\r
+ print
("Command not implemented.")
\r
\r
def setup_metric(self, args):
\r
vnf_name = self._parse_vnf_name(args.get("vnf_name"))
\r
\r
def setup_metric(self, args):
\r
vnf_name = self._parse_vnf_name(args.get("vnf_name"))
\r