Uploaded image for project: 'Facter'
  1. Facter
  2. FACT-2016

Add the scope of found ipv6 addresses (global/linklocal/...) as a fact

    XMLWordPrintable

    Details

    • Template:
    • Team:
      Night's Watch
    • Story Points:
      5
    • Sprint:
      NW - 2019-10-02, NW - 2019-10-16, NW - 2019-10-30
    • Release Notes:
      New Feature
    • Release Notes Summary:
      Facter can now return the new `scope6` fact to display IPv6 address scope.
    • QA Risk Assessment:
      Needs Assessment

      Description

      Puppet Version: any
      Puppet Server Version: any
      OS Name/Version: any

      For certain configuration tasks, it is important to know not only if a host has an IPv6 address (networking.ip6 is not empty), but also if that address is a globally routable address or a link-local address. 

      Desired Behavior:

      **facter returns the scope for the ip6 address it finds: 

       

      $ facter -p networking.ip6
      2001:4860:4860::8888
      $ facter -p networking.ip6_scope
      global
      $ facter -p networking.ip6
      fe80::a800:ff:fe63:14d5
      $ facter -p networking.ip6_scope
      link
      

       

      Actual Behavior:

      networking.ip6_scope does not exist.

      The scope information can be derived from the output of ip:

       

      ip -6 a l dev eth0
      2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 state UP qlen 1000
          inet6 fe80::a800:ff:fe63:14d5/64 **scope link**  <--- 
             valid_lft forever preferred_lft forever
      

       

       

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              ciprian.badescu Ciprian Badescu
              Reporter:
              karsten.heymann Karsten Heymann
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Zendesk Support