Skip to content

Commit fe5a82b

Browse files
authored
More miscellaneous fixes (#852)
* confutils: portmode regexp string fixup Signed-off-by: Dinesh Dutt <[email protected]> * pandas/network.py: display active/timestamp fields as appropriate Signed-off-by: Dinesh Dutt <[email protected]> * Interfaces Parser: IOS parser fix for down vs err-disable Signed-off-by: Dinesh Dutt <[email protected]> --------- Signed-off-by: Dinesh Dutt <[email protected]>
1 parent 6f1a82e commit fe5a82b

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

suzieq/engines/pandas/network.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,10 @@ def find(self, **kwargs):
2727
query_str = kwargs.pop('query_str', '')
2828
fields = self.schema.get_display_fields(['default'])
2929

30+
if ((self.iobj.start_time and self.iobj.end_time) or
31+
(self.iobj.view == 'all')):
32+
fields.insert(0, 'active')
33+
fields.append('timestamp')
3034
dflist = []
3135
if isinstance(addrlist, str):
3236
addrlist = [addrlist]

suzieq/poller/worker/services/interfaces.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -821,8 +821,10 @@ def _clean_iosxr_data(self, processed_data, raw_data):
821821
elif 'Autostate Enabled' in state:
822822
entry['state'] = 'down'
823823
entry['reason'] = state.split(',')[1].strip()
824-
elif 'disabled' in state:
824+
elif 'err-disabled' in state:
825825
entry['state'] = 'errDisabled'
826+
elif 'disabled' in state:
827+
entry['state'] = 'down'
826828
elif 'monitoring' in state:
827829
entry['state'] = 'down'
828830
elif 'suspended' in state:

0 commit comments

Comments
 (0)