Skip to content

Commit

Permalink
Fixed linting (flake8)
Browse files Browse the repository at this point in the history
Signed-off-by: rickstardust <[email protected]>
  • Loading branch information
rickstardust committed Apr 10, 2024
1 parent 52c0396 commit fe184e3
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions suzieq/engines/pandas/ospf.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,13 @@ def _get_combined_df(self, **kwargs):
nbr_df = self._get_table_sqobj('ospfNbr') \
.get(columns=nbrcols, **kwargs)
if nbr_df.empty:
missing_cols = set(ospfschema.get_display_fields(['default'])) - set(df.columns)
ospf_clmns = ospfschema.get_display_fields(['default'])
missing_cols = set(ospf_clmns) - set(df.columns)
for col in missing_cols:
df[col] = np.nan
df = df.fillna({'peerIP': '-', 'peerHostname': '',
'lastChangeTime': 0, 'numChanges': 0, 'ifState': '', 'adjState': ''})
'lastChangeTime': 0, 'numChanges': 0,
'ifState': '', 'adjState': ''})
return df

merge_cols = [x for x in ['namespace', 'hostname', 'ifname']
Expand Down

0 comments on commit fe184e3

Please sign in to comment.