dell / OpenManage-PowerShell-Modules

Apache License 2.0
20 stars 8 forks source link

Set-OMETemplateNetwork not working #14

Closed nebb00 closed 1 year ago

nebb00 commented 1 year ago

@TrevorSquillario - First sorry for the influx of issues, I have created. Its also totally possible I am doing something stupid...

"TEST_VLAN_11" | Get-OMENetwork image

"TEST_TEMPLATE" | Get-OMETemplate image

"TEST_TEMPLATE" | Get-OMETemplate | Get-OMETemplateNetwork image

"TEST_TEMPLATE" | Get-OMETemplate | Set-OMETemplateNetwork -NICIdentifier "NIC in Mezzanine 1A" -Port 1 -TaggedNetworks $("TEST_VLAN_11" | Get-OMENetwork) -Verbose image

"TEST_TEMPLATE" | Get-OMETemplate | Get-OMETemplateNetwork image

if I then manually add "TEST_VLAN_11" to "Port 1" in the GUI "TEST_TEMPLATE" | Get-OMETemplate | Get-OMETemplateNetwork image

TrevorSquillario commented 1 year ago

Just add the -Mode "Append" parameter. It was supposed to throw an error if you don't specify it, that wasn't working. I added a fix for it in future releases.

nebb00 commented 1 year ago

Just add the -Mode "Append" parameter. It was supposed to throw an error if you don't specify it, that wasn't working. I added a fix for it in future releases.

Thank you. Is it possible to pass two ports in the same command?

TrevorSquillario commented 1 year ago

Technically yes but I'm going to leave it as separate commands for now. Could be a potential enhancement in the future.