Skip to content

Commit

Permalink
fix: 🐛 Correct the name of the example Device model used in Adapter a…
Browse files Browse the repository at this point in the history
…nd change DiffSync to SSoT.
  • Loading branch information
jdrew82 committed Dec 18, 2024
1 parent 14f350a commit e40326f
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

from diffsync import Adapter

from {{ cookiecutter.app_name }}.diffsync.models import DiffsyncDevice
from {{ cookiecutter.app_name }}.diffsync.models import DeviceSSoTModel


class {{ cookiecutter.system_of_record_camel }}RemoteAdapter(Adapter):
"""DiffSync adapter for {{ cookiecutter.system_of_record }}."""

device = DiffsyncDevice
device = DeviceSSoTModel

top_level = ["device"]

Expand All @@ -17,7 +17,7 @@ def __init__(self, *args, job=None, sync=None, client=None, **kwargs):
Args:
job (object, optional): {{ cookiecutter.system_of_record }} job. Defaults to None.
sync (object, optional): {{ cookiecutter.system_of_record }} DiffSync. Defaults to None.
sync (object, optional): {{ cookiecutter.system_of_record }} SSoT. Defaults to None.
client (object): {{ cookiecutter.system_of_record }} API client connection object.
"""
super().__init__(*args, **kwargs)
Expand All @@ -26,19 +26,19 @@ def __init__(self, *args, job=None, sync=None, client=None, **kwargs):
self.conn = client

def load(self):
"""Load data from {{ cookiecutter.system_of_record }} into DiffSync models."""
"""Load data from {{ cookiecutter.system_of_record }} into SSoT models."""
raise NotImplementedError()


class {{ cookiecutter.system_of_record_camel }}NautobotAdapter(NautobotAdapter):
"""DiffSync adapter for Nautobot."""

device = NautobotDevice
device = DeviceSSoTModel

top_level = ["device"]

{% if cookiecutter.direction_of_sync == "From Nautobot" %}
def load(self):
"""Load data from Nautobot into DiffSync models."""
"""Load data from Nautobot into SSoT models."""
raise NotImplementedError()
{% endif %}

0 comments on commit e40326f

Please sign in to comment.