File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111from rest_framework .authentication import BaseAuthentication
1212from rest_framework .exceptions import AuthenticationFailed
1313
14- from netbox_diode_plugin .api .profile import get_profile_ctx , profiled
1514from netbox_diode_plugin .plugin_config import (
1615 get_diode_auth_introspect_url ,
1716 get_diode_user ,
1817 get_required_token_audience ,
1918)
2019
20+ from .profile import get_profile_ctx , profiled
21+
2122logger = logging .getLogger ("netbox.diode_data" )
2223
2324
Original file line number Diff line number Diff line change 1414from rest_framework import serializers
1515from utilities .api import get_serializer_for_model as netbox_get_serializer_for_model
1616
17- from netbox_diode_plugin . api .plugin_utils import legal_fields , legal_object_types
17+ from .plugin_utils import legal_fields , legal_object_types
1818
1919logger = logging .getLogger (__name__ )
2020
Original file line number Diff line number Diff line change 1010from rest_framework .exceptions import ValidationError
1111from rest_framework .response import Response
1212
13- from netbox_diode_plugin . api .applier import apply_changeset
14- from netbox_diode_plugin . api .authentication import DiodeOAuth2Authentication
15- from netbox_diode_plugin . api .common import (
13+ from .applier import apply_changeset
14+ from .authentication import DiodeOAuth2Authentication
15+ from .common import (
1616 Change ,
1717 ChangeSet ,
1818 ChangeSetException ,
1919 ChangeSetResult ,
2020)
21- from netbox_diode_plugin . api .differ import generate_changeset
22- from netbox_diode_plugin . api .permissions import (
21+ from .differ import generate_changeset
22+ from .permissions import (
2323 SCOPE_NETBOX_READ ,
2424 SCOPE_NETBOX_WRITE ,
2525 IsAuthenticated ,
You can’t perform that action at this time.
0 commit comments