mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-21 00:19:42 +02:00
fix for missing ipv6 addresses and scope_id
This commit is contained in:
@ -525,9 +525,10 @@ def parse(
|
|||||||
''', re.IGNORECASE | re.VERBOSE
|
''', re.IGNORECASE | re.VERBOSE
|
||||||
)
|
)
|
||||||
re_freebsd_ipv6 = re.compile(r'''
|
re_freebsd_ipv6 = re.compile(r'''
|
||||||
\s?inet6\s(?P<address>.*)(?:\%\w+\d+)\s
|
\s?inet6\s(?P<address>.*?)
|
||||||
prefixlen\s(?P<mask>\d+)(?:\s\w+)?\s
|
(?:\%(?P<scope_id>\w+\d+))?\s
|
||||||
scopeid\s(?P<scope>\w+x\w+)
|
prefixlen\s(?P<mask>\d+).*?(?=scopeid|$)
|
||||||
|
(?:scopeid\s(?P<scope>0x\w+))?
|
||||||
''', re.IGNORECASE | re.VERBOSE
|
''', re.IGNORECASE | re.VERBOSE
|
||||||
)
|
)
|
||||||
re_freebsd_details = re.compile(r'''
|
re_freebsd_details = re.compile(r'''
|
||||||
@ -646,6 +647,7 @@ def parse(
|
|||||||
'mask': 'ipv6_mask',
|
'mask': 'ipv6_mask',
|
||||||
'broadcast': 'ipv6_bcast',
|
'broadcast': 'ipv6_bcast',
|
||||||
'scope': 'ipv6_scope',
|
'scope': 'ipv6_scope',
|
||||||
|
'scope_id': 'ipv6_scope_id',
|
||||||
'type': 'ipv6_type'
|
'type': 'ipv6_type'
|
||||||
}
|
}
|
||||||
for k, v in ipv6_dict.copy().items():
|
for k, v in ipv6_dict.copy().items():
|
||||||
|
Reference in New Issue
Block a user