diff options
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) |