1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-06-19 00:17:51 +02:00

change 'if' to 'iface'

This commit is contained in:
Kelly Brazil
2020-07-27 15:30:09 -07:00
parent 5d5da8d33f
commit b2c385dc4f

View File

@ -188,7 +188,7 @@ def parse(data, raw=False, quiet=False):
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].replace(' Next Hop ', ' Next_Hop ').replace(' Flag ', ' Flags ').replace(' Met ', ' Metric ').replace(' If', ' Iface')
cleandata[0] = cleandata[0].lower()
raw_output = jc.parsers.universal.simple_table_parse(cleandata)