diff --git a/maas/client/viscera/interfaces.py b/maas/client/viscera/interfaces.py index c9d2a22..0ba772b 100644 --- a/maas/client/viscera/interfaces.py +++ b/maas/client/viscera/interfaces.py @@ -7,6 +7,7 @@ from . import ( check, + check_optional, Object, ObjectField, ObjectFieldRelated, @@ -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 ) diff --git a/maas/client/viscera/machines.py b/maas/client/viscera/machines.py index f9ac96d..7637914 100644 --- a/maas/client/viscera/machines.py +++ b/maas/client/viscera/machines.py @@ -352,6 +352,9 @@ class Machine(Node, metaclass=MachineType): cpus = ObjectField.Checked("cpu_count", check(int), check(int)) disable_ipv4 = ObjectField.Checked("disable_ipv4", check(bool), check(bool)) distro_series = ObjectField.Checked("distro_series", check(str), readonly=True) + hardware_info = ObjectField.Checked( + "hardware_info", check(dict), check(dict), readonly=True + ) hwe_kernel = ObjectField.Checked( "hwe_kernel", check_optional(str), check_optional(str) )