aboutsummaryrefslogtreecommitdiffstats
path: root/app/discover/fetchers/cli
diff options
context:
space:
mode:
authoryayogev <yaronyogev@gmail.com>2017-08-11 00:35:14 +0300
committeryayogev <yaronyogev@gmail.com>2017-08-11 00:35:14 +0300
commit9d51c29acfb81ae16c72a1675d7b021d032dbdfb (patch)
treea815ba52d062fb37c33e6ac99cfb3a6ae11a514a /app/discover/fetchers/cli
parent2414c92d87a4b807d8480328681ef066ba08e305 (diff)
US2853 rename pnic to host_pnic & switch_pnic
fixed clique finder to work with switch-switch link type Change-Id: I4f815f77e6b4ea36669dfb58bb5f5e914fe3e1ac Signed-off-by: yayogev <yaronyogev@gmail.com>
Diffstat (limited to 'app/discover/fetchers/cli')
-rw-r--r--app/discover/fetchers/cli/cli_fetch_host_pnics.py3
-rw-r--r--app/discover/fetchers/cli/cli_fetch_host_pnics_vpp.py2
2 files changed, 2 insertions, 3 deletions
diff --git a/app/discover/fetchers/cli/cli_fetch_host_pnics.py b/app/discover/fetchers/cli/cli_fetch_host_pnics.py
index 86aa693..3516e25 100644
--- a/app/discover/fetchers/cli/cli_fetch_host_pnics.py
+++ b/app/discover/fetchers/cli/cli_fetch_host_pnics.py
@@ -71,8 +71,7 @@ class CliFetchHostPnics(CliAccess):
"host": host_id,
"name": id,
"local_name": interface_name,
- "lines": [],
- "pnic_type": "host"
+ "lines": []
}
self.handle_line(interface, line_remainder)
if '<UP,' in line:
diff --git a/app/discover/fetchers/cli/cli_fetch_host_pnics_vpp.py b/app/discover/fetchers/cli/cli_fetch_host_pnics_vpp.py
index 69b6413..d783998 100644
--- a/app/discover/fetchers/cli/cli_fetch_host_pnics_vpp.py
+++ b/app/discover/fetchers/cli/cli_fetch_host_pnics_vpp.py
@@ -37,7 +37,7 @@ class CliFetchHostPnicsVpp(Fetcher):
pnic = pnic_ports[pnic_name]
pnic['host'] = host_id
pnic['id'] = host_id + "-pnic-" + pnic_name
- pnic['type'] = 'pnic'
+ pnic['type'] = 'host_pnic'
pnic['object_name'] = pnic_name
pnic['Link detected'] = 'yes' if pnic['state'] == 'up' else 'no'
ret.append(pnic)