mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-13 16:14:40 +00:00
Interfaces: Diagnostics: Packet Capture - minor bugfix in extracting interface leading to mangled interfaces in the viewer (vlan0.1.2.3 turning into vlan0)
This commit is contained in:
parent
afcbddc153
commit
331b03a21a
@ -173,7 +173,7 @@ if __name__ == '__main__':
|
||||
result['status'] = 'ok'
|
||||
result['interfaces'] = {}
|
||||
for filename in glob.glob("%s%s*.pcap" % (TEMP_DIR, cmd_args.job)):
|
||||
intf = filename.split('_')[-1].split('.')[0]
|
||||
intf = filename.split('_', 1)[-1].rsplit('.', 1)[0]
|
||||
result['interfaces'][intf] = {'rows': []}
|
||||
args = []
|
||||
if cmd_args.detail == 'normal':
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user