On Thu, Mar 26, 2015 at 05:46:12PM +0100, Henning Brauer wrote:
> * Mike Belopuhov <m...@belopuhov.com> [2015-03-26 14:36]:
> > however I agree that if we do this for ipv6 we should do it for ipv4 as well
> > but then do we care about tons of stuff out there parsing ifconfig output?
> 
> that's the prime question. I would love to move to CIDR notation - are
> we breaking people's scripts with that? The inet side has been the same
> for, what, decades?

Of course this breaks stuff :)

Diff at the end (for those interested) shows in which way it breaks
ansible - which I understand the cool kids use these days...
Note to self: ansible should care about pltime...

We could port libxo.
/me runs away giggling like an idiot

--- setup1.txt  Thu Mar 26 18:21:12 2015
+++ setup2.txt  Thu Mar 26 18:21:24 2015
@@ -4,22 +4,23 @@
             "10.11.12.32"
         ], 
         "ansible_all_ipv6_addresses": [
-            "fe80::5054:ff:fedc:6fcd%vio0", 
-            "AAAA:BBBB:CCCC:1:5054:ff:fedc:6fcd", 
-            "AAAA:BBBB:CCCC:1:e02b:adec:a4ce:f04d"
+            "fe80::1%lo0/64", 
+            "fe80::5054:ff:fedc:6fcd%vio0/64", 
+            "AAAA:BBBB:CCCC:1:5054:ff:fedc:6fcd/64", 
+            "AAAA:BBBB:CCCC:1:e02b:adec:a4ce:f04d/64"
         ], 
         "ansible_architecture": "amd64", 
@@ -49,7 +50,7 @@
             "type": "unknown"
         }, 
         "ansible_default_ipv6": {
-            "address": "fe80::5054:ff:fedc:6fcd%vio0", 
+            "address": "fe80::5054:ff:fedc:6fcd%vio0/64", 
             "device": "vio0", 
             "flags": [
                 "UP", 
@@ -65,8 +66,6 @@
             "media": "Ethernet", 
             "media_select": "autoselect", 
             "mtu": "1500", 
-            "prefix": "64", 
-            "scope": "0x1", 
             "status": "active", 
             "type": "unknown"
         }, 
@@ -119,13 +118,10 @@
             ], 
             "ipv6": [
                 {
-                    "address": "fe80::1%lo0", 
-                    "prefix": "64", 
-                    "scope": "0x3"
+                    "address": "fe80::1%lo0/64"
                 }, 
                 {
-                    "address": "::1", 
-                    "prefix": "128"
+                    "address": "::1/128"
                 }
             ], 
             "macaddress": "unknown", 
@@ -176,17 +172,13 @@
             ], 
             "ipv6": [
                 {
-                    "address": "fe80::5054:ff:fedc:6fcd%vio0", 
-                    "prefix": "64", 
-                    "scope": "0x1"
+                    "address": "fe80::5054:ff:fedc:6fcd%vio0/64"
                 }, 
                 {
-                    "address": "AAAA:BBBB:CCCC:1:5054:ff:fedc:6fcd", 
-                    "prefix": "64"
+                    "address": "AAAA:BBBB:CCCC:1:5054:ff:fedc:6fcd/64"
                 }, 
                 {
-                    "address": "AAAA:BBBB:CCCC:1:e02b:adec:a4ce:f04d", 
-                    "prefix": "64"
+                    "address": "AAAA:BBBB:CCCC:1:e02b:adec:a4ce:f04d/64"
                 }
             ], 
             "macaddress": "52:54:00:dc:6f:cd", 


-- 
I'm not entirely sure you are real.

Reply via email to