Skip to content

Add sync() method/property for the core.data_sources endpoint #713

@ifoughal

Description

@ifoughal

pynetbox version

v7.5.0

NetBox version

v4.4.5

Feature type

Data model extension

Proposed functionality

when adding a data-source through the API, PyNetbox doesn't currently support the sync(); so we have to sync manually through the gui, in order to be able to use the context/template of the created data-source.

the sync() property of core.data_sources would let the user run the sync method through the API post create of the data-source.

Use case

creating a data-source through pynetbox & then creating config-templates source from that data-source is currently not supported, as the program would have to be suspended in order for the user to sync manually.

By adding a core.py model with a data_source class & sync property; the user would be able to sync the newly created data-source in order to git fetch/pull the files. and then creating the config-template objects associated with said files.

External dependencies

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    app: pynetboxstatus: needs triageThe issue is awaiting triage by a maintainertype: featureIntroduction of new functionality to the application

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions