yeled / napalm-opengear Goto Github PK
View Code? Open in Web Editor NEWNAPALM Driver for Opengear Linux
License: MIT License
NAPALM Driver for Opengear Linux
License: MIT License
How should we best support get_users() and support changing password hashes?
Is it all in /etc/config/shadow? are they hashed in a secure way?
Finding the groups would also be beneficial. I know how to set and remove groups with user-mod
and tbh I prefer to delete the user and start afresh as I've seen group changes not "stick" (just anecdotally) when trying to remove them with that tool.
If we remove and delete users every time people might be surprised their ~ disappears.
Leaving XML aside for now, probably a v2 feature..
How do we want to expect the NAPALM template to configure the action of "delete" vs "set"?
@fjaeckel and I spoke about this on Slack and thought that matching the config
setting of "if a var is missing, it's a delete.
config -d var.foo
If the var is set (we can match a literal =
character) then it's a config -s var.foo=quux
.
var.foo=1
{% some stuff %}
quux.bar={{ some["stuff"] | default("Hello") }}
baz
{% some other stuff %}
Would come to:
config -s var.foo=1
config -s quux.bar=Hello
config -d baz
What do you think @r0bertw ?
The only problem I see is that it's hard to immediately spot, if you had hundreds of lines of var=foo, and one was missing a =
it might take a lot to find out why some config was being deleted.
We could explicitly just pass the -d
and the -s
from the template, but then a config -g config
wouldn't be restorable, you'd need to insert a -s
before each line.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.