Microsoft Virtualization Discussions

Can't remove port from Default Broadcast Domain using Powershell

AllenChang
890 Views

When I use powershell to remove port from Default Broadcast Domain,

it show me an error message

AllenChang_0-1724052930770.png

But I can do the same thing in ontap cli

AllenChang_1-1724053008405.png

Is any thing I miss in powershell environment?

 

Thanks

 

 

 

1 ACCEPTED SOLUTION

Ashun
267 Views

hi

 

In the broadcast domain Default using the Set - NcNetPortBroadcastDomain remove port seems to be not possible
However, you can separate the port into a separate broadcast domain, and then use Set-NcNetPortBroadcastDomain to remove the port and delete the separate broadcast domain

 

For example

PS C:\Windows\system32> Set-NcNetPortBroadcastDomain -Name Default -RemovePort cluster1-01:e0d
Set-NcNetPortBroadcastDomain : Port cannot be removed from Default Broadcast Domain

 

PS C:\Windows\system32> Split-NcNetPortBroadcastDomain -Name Default -Ipspace Default -NewName data01 -Port cluster1-01:e0d

BroadcastDomain Ipspace FailoverGroups Mtu PortUpdateStatusCombined
--------------- ------- -------------- --- ------------------------
data01 Default {data01} 1500 complete


PS C:\Windows\system32> Set-NcNetPortBroadcastDomain -Name data01 -RemovePort cluster1-01:e0d

BroadcastDomain Ipspace FailoverGroups Mtu PortUpdateStatusCombined
--------------- ------- -------------- --- ------------------------
data01 Default 1500 complete


PS C:\Windows\system32> Remove-NcNetPortBroadcastDomain -Name data01
PS C:\Windows\system32>

View solution in original post

2 REPLIES 2

saharsh
650 Views

Could you please share the debug logs? This will help me to identify the root cause of the error. You can enable logs using set-natoolkitconfiguration debug.

Ashun
268 Views

hi

 

In the broadcast domain Default using the Set - NcNetPortBroadcastDomain remove port seems to be not possible
However, you can separate the port into a separate broadcast domain, and then use Set-NcNetPortBroadcastDomain to remove the port and delete the separate broadcast domain

 

For example

PS C:\Windows\system32> Set-NcNetPortBroadcastDomain -Name Default -RemovePort cluster1-01:e0d
Set-NcNetPortBroadcastDomain : Port cannot be removed from Default Broadcast Domain

 

PS C:\Windows\system32> Split-NcNetPortBroadcastDomain -Name Default -Ipspace Default -NewName data01 -Port cluster1-01:e0d

BroadcastDomain Ipspace FailoverGroups Mtu PortUpdateStatusCombined
--------------- ------- -------------- --- ------------------------
data01 Default {data01} 1500 complete


PS C:\Windows\system32> Set-NcNetPortBroadcastDomain -Name data01 -RemovePort cluster1-01:e0d

BroadcastDomain Ipspace FailoverGroups Mtu PortUpdateStatusCombined
--------------- ------- -------------- --- ------------------------
data01 Default 1500 complete


PS C:\Windows\system32> Remove-NcNetPortBroadcastDomain -Name data01
PS C:\Windows\system32>

Public