From e203de87f7ad582c85a2660cb50f474347858ff8 Mon Sep 17 00:00:00 2001 From: Achim Christ Date: Tue, 19 Nov 2024 11:15:14 +0000 Subject: [PATCH] chore: finalize data model Signed-off-by: Achim Christ --- internal/interfaces/networking_broadcast_domain.go | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/internal/interfaces/networking_broadcast_domain.go b/internal/interfaces/networking_broadcast_domain.go index 75e56ad5..e7e996f1 100644 --- a/internal/interfaces/networking_broadcast_domain.go +++ b/internal/interfaces/networking_broadcast_domain.go @@ -32,13 +32,20 @@ type BroadcastDomainResourceBodyDataModelONTAP struct { // BroadcastDomainIPSpace describes an IP space specifically for broadcast domains. type BroadcastDomainIPSpace struct { Name string `mapstructure:"name,omitempty"` - // UUID string `mapstructure:"uuid,omitempty"` + UUID string `mapstructure:"uuid,omitempty"` } // BroadcastDomainPort describes an ethernet port specifically for broadcast domains. type BroadcastDomainPort struct { - Name string `mapstructure:"name"` - // UUID string `mapstructure:"uuid"` + Name string `mapstructure:"name,omitempty"` + Node BroadcastDomainNode `mapstructure:"node,omitempty"` + UUID string `mapstructure:"uuid,omitempty"` +} + +// BroadcastDomainNode describes a node specifically for ethernet ports. +type BroadcastDomainNode struct { + Name string `mapstructure:"name,omitempty"` + UUID string `mapstructure:"uuid,omitempty"` } // BroadcastDomainDataSourceFilterModel describes filter model.