Skip to content

Commit

Permalink
Add product string to Interface
Browse files Browse the repository at this point in the history
  • Loading branch information
mpontillo committed Jun 24, 2024
1 parent bcfd581 commit 121e2d2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions maas/client/viscera/interfaces.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from . import (
check,
check_optional,
Object,
ObjectField,
ObjectFieldRelated,
Expand Down Expand Up @@ -94,6 +95,7 @@ class Interface(Object, metaclass=InterfaceTypeMeta):
parents = ObjectFieldRelatedSet(
"parents", "Interfaces", reverse=None, map_func=map_nic_name_to_dict
)
product = ObjectField.Checked("product", check_optional(str), readonly=True)
children = ObjectFieldRelatedSet(
"children", "Interfaces", reverse=None, map_func=map_nic_name_to_dict
)
Expand Down

0 comments on commit 121e2d2

Please sign in to comment.