X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;f=meta-starlingx%2Fmeta-stx-cloud%2Frecipes-support%2Ffacter%2Ffiles%2F0004-centos_fix-ipv6-regex.patch;fp=meta-starlingx%2Fmeta-stx-cloud%2Frecipes-support%2Ffacter%2Ffiles%2F0004-centos_fix-ipv6-regex.patch;h=1704f258c28173265295cdbf1459ac9584eb9fae;hb=e0634c6eaf2fe2641a0fb90e84a5defb880b1335;hp=0000000000000000000000000000000000000000;hpb=210d0f78485e760dffcdd3f630f59cec797f3f11;p=pti%2Frtp.git diff --git a/meta-starlingx/meta-stx-cloud/recipes-support/facter/files/0004-centos_fix-ipv6-regex.patch b/meta-starlingx/meta-stx-cloud/recipes-support/facter/files/0004-centos_fix-ipv6-regex.patch new file mode 100644 index 0000000..1704f25 --- /dev/null +++ b/meta-starlingx/meta-stx-cloud/recipes-support/facter/files/0004-centos_fix-ipv6-regex.patch @@ -0,0 +1,12 @@ +diff -Nurpd a/lib/facter/util/ip.rb b/lib/facter/util/ip.rb +--- a/lib/facter/util/ip.rb 2019-12-26 10:22:04.591601094 -0800 ++++ b/lib/facter/util/ip.rb 2019-12-26 10:24:10.639781276 -0800 +@@ -6,7 +6,7 @@ module Facter::Util::IP + REGEX_MAP = { + :linux => { + :ipaddress => /inet (?:addr:)?([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/, +- :ipaddress6 => /inet6 (?:addr: )?((?!(?:fe80|::1))(?>[0-9,a-f,A-F]*\:{1,2})+[0-9,a-f,A-F]{0,4})/, ++ :ipaddress6 => /inet6 (?:addr: )?((?!(fe80|\:\:1))(?>[0-9,a-f,A-F]*\:{1,2})+[0-9,a-f,A-F]{0,4})/, + :macaddress => /(?:ether|HWaddr)\s+((\w{1,2}:){5,}\w{1,2})/, + :netmask => /(?:Mask:|netmask )([0-9]+\.[0-9]+\.[0-9]+\.[0-9]+)/, + :mtu => /MTU:?\s*(\d+)/i