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

networking.ip should fall back to default route 'src' if networking.primary has no IP address

    XMLWordPrintable

Details

    • Improvement
    • Status: Closed
    • Normal
    • Resolution: Fixed
    • FACT 3.1.2
    • FACT 3.1.5
    • None
    • None
    • 2
    • Client 2016-03-09, Client 2016-03-23
    • New Feature
    • Facter will now consider the 'source' attribute of routing table entries associated with an interface to be an additional address tied to that interface.

    Description

      Somewhat similar to FACT-380. In our case we have a default route with a configured src address, pointing to an interface that doesn't itself have an IP address:

      bash-4.3# ip route show 
      default dev fwdintf  scope link  src 192.168.122.222 
      bash-4.3# ifconfig fwdintf
      fwdintf   Link encap:Ethernet  HWaddr 00:00:00:00:00:0a  
                inet6 addr: fe80::200:ff:fe00:a/64 Scope:Link
                UP RUNNING NOARP MULTICAST  MTU:1496  Metric:1
      

      Facter selects fwdintf as the primary interface and does not report any networking.ip:

      bash-4.3# /opt/puppetlabs/puppet/bin/facter -j networking.primary
      {
        "networking.primary": "fwdintf"
      }
      bash-4.3# /opt/puppetlabs/puppet/bin/facter -j networking.ip     
      {
        "networking.ip": ""
      }
      

      Ideally Facter would report the src address in this case.

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              glmatthe Glenn Matthews
              Votes:
              0 Vote for this issue
              Watchers:
              9 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Zendesk Support