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

1 view
Skip to first unread message

Karsten Heymann (JIRA)

unread,
Sep 11, 2019, 9:46:03 AM9/11/19
to puppe...@googlegroups.com
Karsten Heymann created an issue
 
Facter / Improvement FACT-2016
Add the scope of found ipv6 addresses (global/linklocal/...) as a fact
Issue Type: Improvement Improvement
Assignee: Unassigned
Created: 2019/09/11 6:45 AM
Priority: Minor Minor
Reporter: Karsten Heymann

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

 

 

Add Comment Add Comment
 
This message was sent by Atlassian JIRA (v7.7.1#77002-sha1:e75ca93)
Atlassian logo

Mihai Buzgau (JIRA)

unread,
Sep 16, 2019, 6:13:03 AM9/16/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Sep 16, 2019, 6:13:03 AM9/16/19
to puppe...@googlegroups.com

Mihai Buzgau (JIRA)

unread,
Sep 17, 2019, 4:51:03 AM9/17/19
to puppe...@googlegroups.com

Gheorghe Popescu (JIRA)

unread,
Sep 18, 2019, 3:50:02 AM9/18/19
to puppe...@googlegroups.com

Ciprian Badescu (JIRA)

unread,
Sep 24, 2019, 10:48:03 AM9/24/19
to puppe...@googlegroups.com

Ciprian Badescu (JIRA)

unread,
Sep 25, 2019, 9:54:05 AM9/25/19
to puppe...@googlegroups.com
Ciprian Badescu commented on Improvement FACT-2016
 
Re: Add the scope of found ipv6 addresses (global/linklocal/...) as a fact

I would propose new fact to be called scope6 instead proposed ipv6_scope

PR is done for Linux OS, can you clarify if it is needed for other OS?

Mihai Buzgau (JIRA)

unread,
Oct 2, 2019, 4:40:11 AM10/2/19
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: NW - 2019-10-02 , NW - 2019-10-16

Mihai Buzgau (JIRA)

unread,
Oct 16, 2019, 4:24:10 AM10/16/19
to puppe...@googlegroups.com
Mihai Buzgau updated an issue
Change By: Mihai Buzgau
Sprint: NW - 2019-10-02, NW - 2019-10-16 , NW - 2019-10-30

Ciprian Badescu (JIRA)

unread,
Nov 14, 2019, 9:18:04 AM11/14/19
to puppe...@googlegroups.com

Dorin Pleava (JIRA)

unread,
Jan 8, 2020, 2:53:04 AM1/8/20
to puppe...@googlegroups.com

Dorin Pleava (JIRA)

unread,
Jan 8, 2020, 9:47:03 AM1/8/20
to puppe...@googlegroups.com

Jean Bond (JIRA)

unread,
Jan 14, 2020, 2:20:04 PM1/14/20
to puppe...@googlegroups.com
Jean Bond updated an issue
Change By: Jean Bond
Release Notes Summary: add Facter can now return the new ` scope6 ` fact to display IPv6 Address Scope address scope.

Jean Bond (JIRA)

unread,
Jan 14, 2020, 3:46:03 PM1/14/20
to puppe...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages