mirror of
https://github.com/saltstack/salt.git
synced 2025-04-17 10:10:20 +00:00
Merge pull request #30124 from abednarik/fix_openbsd_ip_alias
Update regex to detect ip alias in OpenBSD.
This commit is contained in:
commit
dd8d3e6f6b
1 changed files with 1 additions and 1 deletions
|
@ -537,7 +537,7 @@ def _interfaces_ifconfig(out):
|
|||
pip6 = re.compile('.*?(?:inet6 )([0-9a-fA-F:]+)')
|
||||
pmask6 = re.compile(r'.*?(?:inet6 [0-9a-fA-F:]+/(\d+)).*')
|
||||
else:
|
||||
pip = re.compile(r'.*?(?:inet addr:|inet )(.*?)\s')
|
||||
pip = re.compile(r'.*?(?:inet addr:|inet [^\d]*)(.*?)\s')
|
||||
pip6 = re.compile('.*?(?:inet6 addr: (.*?)/|inet6 )([0-9a-fA-F:]+)')
|
||||
pmask6 = re.compile(r'.*?(?:inet6 addr: [0-9a-fA-F:]+/(\d+)|prefixlen (\d+))(?: Scope:([a-zA-Z]+)| scopeid (0x[0-9a-fA-F]))?')
|
||||
pmask = re.compile(r'.*?(?:Mask:|netmask )(?:((?:0x)?[0-9a-fA-F]{8})|([\d\.]+))')
|
||||
|
|
Loading…
Add table
Reference in a new issue