projects
/
osm
/
osmclient.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
adding operational state to the vim-list
[osm/osmclient.git]
/
osmclient
/
v1
/
vnf.py
diff --git
a/osmclient/v1/vnf.py
b/osmclient/v1/vnf.py
index
856d58b
..
46ff3af
100644
(file)
--- a/
osmclient/v1/vnf.py
+++ b/
osmclient/v1/vnf.py
@@
-22,11
+22,13
@@
from osmclient.common.exceptions import NotFound
class Vnf(object):
class Vnf(object):
- def __init__(self, http=None):
+ def __init__(self, http=None
, client=None
):
self._http = http
self._http = http
+ self._client = client
def list(self):
def list(self):
- resp = self._http.get_cmd('v1/api/operational/vnfr-catalog/vnfr')
+ resp = self._http.get_cmd('v1/api/operational/{}vnfr-catalog/vnfr'
+ .format(self._client.so_rbac_project_path))
if resp and 'vnfr:vnfr' in resp:
return resp['vnfr:vnfr']
return list()
if resp and 'vnfr:vnfr' in resp:
return resp['vnfr:vnfr']
return list()