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

Give an example of using the API within the docs #130

Open
cdot65 opened this issue Feb 9, 2021 · 0 comments
Open

Give an example of using the API within the docs #130

cdot65 opened this issue Feb 9, 2021 · 0 comments

Comments

@cdot65
Copy link

cdot65 commented Feb 9, 2021

Environment

  • Python version: 3.9
  • NetBox version: 2.9.8
  • ntc-netbox-plugin-onboarding version: 2.1.future

Help those that read the documentation by providing a working example of a POST operation, including the appropriate data model.

Also, include somewhere that using the root user on JunOS boxes will result in an error regarding NAPALM being unable to determine the driver

Proposed Functionality

To create an onboarding task through the REST API, construct your request's body in a format such as that shown below.

{
    "site": "saint-arnolds-brewery",
    "ip_address": "192.168.105.124",
    "port": 22,
    "timeout": 30,
    "role": "firewall",
    "username": "automation",
    "password": "juniper123",
    "device_type": "vSRX",
    "platform": "vsrx"
}

Please keep in mind that using the user of root on a Juniper networking device will prevent NAPALM from detecting the appropriate driver, and will fail the operation with a message such as:

OnboardException: fail-general: Onboarding for Platform None not supported, as it has no specified NAPALM driver

--

Use Case

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

1 participant