Skip to content

Commit

Permalink
Update Subnet class with subnet6 for IPv6 (#1271)
Browse files Browse the repository at this point in the history
Signed-off-by: Shubham Ganar <[email protected]>
(cherry picked from commit bcf600d)
  • Loading branch information
shubhamsg199 authored and web-flow committed Feb 11, 2025
1 parent d17ad72 commit cb5641e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions nailgun/entities.py
Original file line number Diff line number Diff line change
Expand Up @@ -3622,6 +3622,7 @@ def __init__(self, server_config=None, **kwargs):
),
'realm': entity_fields.OneToOneField(Realm),
'subnet': entity_fields.OneToOneField(Subnet),
'subnet6': entity_fields.OneToOneField(Subnet),
'group_parameters_attributes': entity_fields.ListField(),
}

Expand Down Expand Up @@ -4081,6 +4082,7 @@ def __init__(self, server_config=None, **kwargs):
'realm': entity_fields.OneToOneField(Realm),
'root_pass': entity_fields.StringField(length=(8, 30), str_type='alpha'),
'subnet': entity_fields.OneToOneField(Subnet),
'subnet6': entity_fields.OneToOneField(Subnet),
'token': entity_fields.StringField(),
'traces_status': entity_fields.IntegerField(min_val=-1, max_val=2),
'traces_status_label': entity_fields.StringField(),
Expand Down Expand Up @@ -5173,6 +5175,7 @@ def __init__(self, server_config=None, **kwargs):
'provider': entity_fields.StringField(), # for 'bmc' type
'provision': entity_fields.BooleanField(),
'subnet': entity_fields.OneToOneField(Subnet),
'subnet6': entity_fields.OneToOneField(Subnet),
'tag': entity_fields.StringField(), # for 'virtual' type
'type': entity_fields.StringField(
choices=('interface', 'bmc', 'bond', 'bridge'), default='interface', required=True
Expand Down

0 comments on commit cb5641e

Please sign in to comment.