Skip to content

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

@cdot65

Description

@cdot65

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions