@@ -82,6 +82,10 @@ def from_nautobot_response(cls, response: VirtualMachineNetworkInfo):
82
82
def base_port_name (self ):
83
83
return f"e4{ self .side .lower ()} "
84
84
85
+ @cached_property
86
+ def broadcast_domain_name (self ):
87
+ return f"Fabric-{ self .side } "
88
+
85
89
86
90
class NetAppManager :
87
91
"""Manages NetApp ONTAP operations including SVM and volume creation."""
@@ -269,12 +273,16 @@ def create_lif(self, project_id, config: NetappIPInterfaceConfig):
269
273
270
274
interface = IpInterface ()
271
275
interface .name = config .name
272
- interface .ip = {"address" : config .address , "netmask" : config .network .netmask }
276
+ interface .ip = {
277
+ "address" : str (config .address ),
278
+ "netmask" : str (config .network .netmask ),
279
+ }
273
280
interface .enabled = True
274
281
interface .svm = {"name" : self ._svm_name (project_id )}
275
282
interface .location = {
276
283
"auto_revert" : True ,
277
- "home_port" : {"uuid" : str (self .create_home_port (config ))},
284
+ "home_port" : {"uuid" : str (self .create_home_port (config ).uuid )},
285
+ "broadcast_domain" : {"name" : config .broadcast_domain_name },
278
286
}
279
287
interface .service_policy = {"name" : "default-data-nvme-tcp" }
280
288
logger .debug ("Creating IpInterface: %s" , interface )
@@ -289,6 +297,10 @@ def create_home_port(self, config: NetappIPInterfaceConfig):
289
297
resource .type = "vlan"
290
298
resource .node = {"name" : home_node .name }
291
299
resource .enabled = True
300
+ resource .broadcast_domain = {
301
+ "name" : config .broadcast_domain_name ,
302
+ "ipspace" : {"name" : "Default" },
303
+ }
292
304
resource .vlan = {
293
305
"tag" : config .vlan_id ,
294
306
"base_port" : {
0 commit comments