Skip to content

Commit

Permalink
Update template_content.py
Browse files Browse the repository at this point in the history
  • Loading branch information
PieterL75 authored May 28, 2024
1 parent cf34ee6 commit 0cea7ed
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions netbox_ipcalculator/template_content.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
from netbox.plugins import PluginTemplateExtension
from netbox.settings import VERSION
if VERSION.startswith("3."):
from extras.plugins import PluginTemplateExtension
else:
from netbox.plugins import PluginTemplateExtension
import json

class IPCalcAggregate(PluginTemplateExtension):
Expand Down Expand Up @@ -28,4 +32,4 @@ def right_page(self):
})
return output

template_extensions = [IPCalcAggregate,IPCalcPrefix,IPCalcIPAddress]
template_extensions = [IPCalcAggregate,IPCalcPrefix,IPCalcIPAddress]

0 comments on commit 0cea7ed

Please sign in to comment.