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

Command Mapper Functionality #180

Open
jeffkala opened this issue Dec 14, 2022 · 1 comment
Open

Command Mapper Functionality #180

jeffkala opened this issue Dec 14, 2022 · 1 comment

Comments

@jeffkala
Copy link
Collaborator

Environment

  • netutils version: Future

Proposed Functionality

Take a theoretical "check" on a service/configuration dataset and get back the command(s) reference based on the platform.

Use Case

As a network ops engineer or automation engineer its not always easy to take a theoretical "check" on a service/configuration dataset and get back the command reference based on the platform. It would be nice to be able to query a python function with a "model type" for example "vlan" or "l2_vlan" + a platform and return the command for that platform.

@itdependsnetworks
Copy link
Contributor

Some chicken scratch from slack

>>> class BaseCommandClass:
...   model = None
...   os = None
...   command = None
...
>>> class IosVlan(BaseCommandClass):
...   model = "Vlan"
...   os = "cisco_ios"
...   command = "show vlan"
...
>>>

Additionally, can look into entry-points for this

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

No branches or pull requests

2 participants