1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-17 01:32:37 +02:00

more fixes for ipv6 fix

This commit is contained in:
Kelly Brazil
2020-07-27 15:27:11 -07:00
parent e604571578
commit 5d5da8d33f

View File

@ -183,13 +183,13 @@ def parse(data, raw=False, quiet=False):
cleandata = data.splitlines()[1:]
# fixup header row for ipv6
cleandata[0] = cleandata[0].replace('Next Hop', 'Next_Hop')
raw_output = []
if jc.utils.has_data(data):
# fixup header row for ipv6
cleandata[0] = cleandata[0].replace(' Next Hop ', ' Next_Hop ').replace(' Flag ', ' Flags ').replace(' Met ', ' Metric ')
cleandata[0] = cleandata[0].lower()
raw_output = jc.parsers.universal.simple_table_parse(cleandata)