-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Extend inet attributes and improve ip address type validation
* Allow to enforce IPv4 or IPv6 for inet attributes * Allow duplicate ip addresses in distinct inet attributes
- Loading branch information
1 parent
d169d5c
commit 2c95e5c
Showing
3 changed files
with
68 additions
and
10 deletions.
There are no files selected for viewing
18 changes: 18 additions & 0 deletions
18
serveradmin/serverdb/migrations/0017_inet_family_choice.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 3.2.23 on 2024-02-16 14:28 | ||
|
||
from django.db import migrations, models | ||
|
||
|
||
class Migration(migrations.Migration): | ||
|
||
dependencies = [ | ||
('serverdb', '0016_optional_servertype_for_relation'), | ||
] | ||
|
||
operations = [ | ||
migrations.AddField( | ||
model_name='attribute', | ||
name='inet_address_family', | ||
field=models.CharField(blank=True, choices=[(None, 'none or any'), ('IPV4', 'IPv4'), ('IPV6', 'IPv6')], max_length=5), | ||
), | ||
] |
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