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 f27181d commit 39d2bd7
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 @@ -3706,6 +3706,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 @@ -4166,6 +4167,7 @@ def __init__(self, server_config=None, **kwargs):
'reported_data': entity_fields.DictField(),
'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 @@ -5213,6 +5215,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 39d2bd7

Please sign in to comment.