augeas icon indicating copy to clipboard operation
augeas copied to clipboard

Sysctl lense fails for keys that contain colons (":")

Open mstud opened this issue 4 years ago • 2 comments

We have something like this in our sysctl.conf:

net.ipv4.conf.ib0:0.arp_filter=1

Augeas cannot parse this. There is a related issue for keys containing slashes already (#668), but this here should be much easier to fix, as : is not part of augeas paths, right? Thanks in advance.

mstud avatar Jul 24 '20 11:07 mstud

It looks like it also fails parsing a variable containing a wildcard like:

net.ipv4.conf.*.rp_filter = 2

teclator avatar Mar 23 '22 12:03 teclator

The lense may need more review still:

» perl -e 'system("ip", "link", "add", sprintf("dummy%03u", $_).chr($_), "type", "dummy") for 0..255'
» sysctl -a | grep -P 'dummy.*unres_qlen_bytes'
net.ipv4.neigh.dummy033_.unres_qlen_bytes = 212992
net.ipv4.neigh.dummy034".unres_qlen_bytes = 212992
...
net.ipv4.neigh.dummy061=.unres_qlen_bytes = 212992
...

jengelh avatar Mar 23 '22 13:03 jengelh