Revert "Revert "oran-shell-release: release image for F""
[pti/rtp.git] / meta-starlingx / meta-stx-cloud / recipes-support / facter / files / 0004-centos_fix-ipv6-regex.patch
1 diff -Nurpd a/lib/facter/util/ip.rb b/lib/facter/util/ip.rb
2 --- a/lib/facter/util/ip.rb     2019-12-26 10:22:04.591601094 -0800
3 +++ b/lib/facter/util/ip.rb     2019-12-26 10:24:10.639781276 -0800
4 @@ -6,7 +6,7 @@ module Facter::Util::IP
5    REGEX_MAP = {
6      :linux => {
7        :ipaddress  => /inet (?:addr:)?([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/,
8 -      :ipaddress6 => /inet6 (?:addr: )?((?!(?:fe80|::1))(?>[0-9,a-f,A-F]*\:{1,2})+[0-9,a-f,A-F]{0,4})/,
9 +      :ipaddress6 => /inet6 (?:addr: )?((?!(fe80|\:\:1))(?>[0-9,a-f,A-F]*\:{1,2})+[0-9,a-f,A-F]{0,4})/,
10        :macaddress => /(?:ether|HWaddr)\s+((\w{1,2}:){5,}\w{1,2})/,
11        :netmask  => /(?:Mask:|netmask )([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/,
12        :mtu  => /MTU:?\s*(\d+)/i