Skip to content

Commit

Permalink
Merge pull request #123 from nautobot/jeffkala-patch-1
Browse files Browse the repository at this point in the history
Update nautobot_keeper.py
  • Loading branch information
scetron authored Nov 20, 2023
2 parents 152b702 + 81a64a5 commit ebc6037
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
3 changes: 2 additions & 1 deletion nautobot_device_onboarding/nautobot_keeper.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
from django.conf import settings
from django.contrib.contenttypes.models import ContentType
from django.core.exceptions import ValidationError
from nautobot.apps.choices import PrefixTypeChoices
from nautobot.dcim.choices import InterfaceTypeChoices
from nautobot.dcim.models import Manufacturer, Device, Interface, DeviceType
from nautobot.extras.models import Role
Expand Down Expand Up @@ -463,7 +464,7 @@ def ensure_primary_ip(self):
nautobot_prefix, _ = Prefix.objects.get_or_create(
prefix=f"{prefix.network}",
namespace=namespace,
type="Network",
type=PrefixTypeChoices.TYPE_NETWORK,
defaults={"status": ip_status},
)
self.nb_primary_ip, created = IPAddress.objects.get_or_create(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,3 @@
</div>
</div>
{% endblock %}

{% block javascript %}
<script src="{% static 'js/graphs.js' %}?v{{ settings.VERSION }}"></script>
{% endblock %}

0 comments on commit ebc6037

Please sign in to comment.