Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mstud opened this issue Jul 24, 2020 · 2 comments
Open

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

mstud opened this issue Jul 24, 2020 · 2 comments

Comments

@mstud
Copy link

mstud commented Jul 24, 2020

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.

@teclator
Copy link

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

net.ipv4.conf.*.rp_filter = 2

@jengelh
Copy link

jengelh commented Mar 23, 2022

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
...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants