Giter VIP home page Giter VIP logo

napalm-opengear's People

Contributors

yeled avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

napalm-opengear's Issues

get_users() support?

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.

how do we want to template deletion or set via `config` command?

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.