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:
@ -188,7 +188,7 @@ def parse(data, raw=False, quiet=False):
|
|||||||
if jc.utils.has_data(data):
|
if jc.utils.has_data(data):
|
||||||
|
|
||||||
# fixup header row for ipv6
|
# 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()
|
cleandata[0] = cleandata[0].lower()
|
||||||
raw_output = jc.parsers.universal.simple_table_parse(cleandata)
|
raw_output = jc.parsers.universal.simple_table_parse(cleandata)
|
||||||
|
Reference in New Issue
Block a user