diff options
author | 2017-08-11 00:35:14 +0300 | |
---|---|---|
committer | 2017-08-11 00:35:14 +0300 | |
commit | 9d51c29acfb81ae16c72a1675d7b021d032dbdfb (patch) | |
tree | a815ba52d062fb37c33e6ac99cfb3a6ae11a514a /app/discover/fetchers/cli | |
parent | 2414c92d87a4b807d8480328681ef066ba08e305 (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.py | 3 | ||||
-rw-r--r-- | app/discover/fetchers/cli/cli_fetch_host_pnics_vpp.py | 2 |
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) |