From 689a85db9ba0cfd2d0dcd476c5692a4f952ba3d2 Mon Sep 17 00:00:00 2001 From: Kelly Brazil Date: Fri, 2 Dec 2022 11:09:17 -0800 Subject: [PATCH] fix for missing ipv6 addresses and scope_id --- jc/parsers/ifconfig.py | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/jc/parsers/ifconfig.py b/jc/parsers/ifconfig.py index 35651fd4..2ed16923 100644 --- a/jc/parsers/ifconfig.py +++ b/jc/parsers/ifconfig.py @@ -525,9 +525,10 @@ def parse( ''', re.IGNORECASE | re.VERBOSE ) re_freebsd_ipv6 = re.compile(r''' - \s?inet6\s(?P
.*)(?:\%\w+\d+)\s - prefixlen\s(?P\d+)(?:\s\w+)?\s - scopeid\s(?P\w+x\w+) + \s?inet6\s(?P
.*?) + (?:\%(?P\w+\d+))?\s + prefixlen\s(?P\d+).*?(?=scopeid|$) + (?:scopeid\s(?P0x\w+))? ''', re.IGNORECASE | re.VERBOSE ) re_freebsd_details = re.compile(r''' @@ -646,6 +647,7 @@ def parse( 'mask': 'ipv6_mask', 'broadcast': 'ipv6_bcast', 'scope': 'ipv6_scope', + 'scope_id': 'ipv6_scope_id', 'type': 'ipv6_type' } for k, v in ipv6_dict.copy().items():