-
Notifications
You must be signed in to change notification settings - Fork 69
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
* Add model and individual option * Add forms and views * minor changes
- Loading branch information
Showing
8 changed files
with
94 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
from utilities.choices import ChoiceSet | ||
|
||
class NodeLabelItems(ChoiceSet): | ||
DEVICE_NAME = 'devicename' | ||
PRIMARY_IPV4 = 'primaryipv4' | ||
PRIMARY_IPV6 = 'primaryipv6' | ||
OUT_OF_BAND_IP = 'outofbandip' | ||
|
||
CHOICES = [ | ||
(DEVICE_NAME, 'Device Name'), | ||
(PRIMARY_IPV4, 'Primary IPv4'), | ||
(PRIMARY_IPV6, 'Primary IPv6'), | ||
(OUT_OF_BAND_IP, 'Out-of-band IP'), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
18 changes: 18 additions & 0 deletions
18
netbox_topology_views/migrations/0011_individualoptions_node_label_items.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
# Generated by Django 5.0.9 on 2024-09-27 18:19 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('netbox_topology_views', '0010_individualoptions_grid_size'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='individualoptions', | ||
name='node_label_items', | ||
field=models.CharField(blank=True, max_length=255), | ||
), | ||
] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters