diff options
author | fujinhua <fu.jinhua@zte.com.cn> | 2018-08-21 14:51:31 +0800 |
---|---|---|
committer | fujinhua <fu.jinhua@zte.com.cn> | 2018-08-21 14:51:31 +0800 |
commit | 2cda1a6ea70e2c7382d694807d2906496c466c15 (patch) | |
tree | 495a4802187d9fac10ce0e0666cc95272d488e79 | |
parent | 80180f64f88a66cfe6c4607a9dc50b6dc3f64cdb (diff) |
Remove csar id filter for ns query interface
Change-Id: Ia2a9d790a3b2ec6cfce57aea1a5e4cc2d8dc9335
Issue-ID: VFC-1009
Signed-off-by: fujinhua <fu.jinhua@zte.com.cn>
-rw-r--r-- | lcm/ns/ns_get.py | 4 | ||||
-rw-r--r-- | lcm/ns/views.py | 7 |
2 files changed, 3 insertions, 8 deletions
diff --git a/lcm/ns/ns_get.py b/lcm/ns/ns_get.py index 239c4ebd..4193bfae 100644 --- a/lcm/ns/ns_get.py +++ b/lcm/ns/ns_get.py @@ -21,8 +21,8 @@ logger = logging.getLogger(__name__) class GetNSInfoService(object): - def __init__(self, nsfilter=None): - self.ns_filter = nsfilter + def __init__(self, ns_filter=None): + self.ns_filter = ns_filter def get_ns_info(self): ns_insts = None diff --git a/lcm/ns/views.py b/lcm/ns/views.py index c78b60be..11790e14 100644 --- a/lcm/ns/views.py +++ b/lcm/ns/views.py @@ -55,12 +55,7 @@ class CreateNSView(APIView): def get(self, request): try: logger.debug("CreateNSView::get") - filter = None - csarId = ignore_case_get(request.META, 'csarId') - if csarId: - filter = {"csarId": csarId} - - ret = GetNSInfoService(filter).get_ns_info() + ret = GetNSInfoService().get_ns_info() logger.debug("CreateNSView::get::ret=%s", ret) resp_serializer = QueryNsRespSerializer(data=ret, many=True) if not resp_serializer.is_valid(): |