Open kevsterd opened 6 years ago
i think missing a Set-NsxEdgeInterfaceAddress cmdlet for modify (Primary and) Secondary Address of one interface
Don't mind the actual method just need to be able to set them..... Its a shame NSX doesn't expose NAT address arp's automatically however this would be a good start.
you could do this manually as follows -
$xml = get-nsxedge
$xml
to add the vnic > addressGroups > addressgroup(index) -> secondaryAddresses -> ipAddress element. This would require some code to detect and optionally create the secondaryAddresses element and is a bit beyond the more simple method required to deal with password as I explained in #431 $xml | set-nsxedge
The main step in the above that requires work is best done using XPath which can be a bit arcane. Ill accept this request as a feature req for next version and will try to add to New-NsxEdgeNatRule
When adding NAT entries to an ESG, there is no method to add just a secondary address to the ESG's interface which is mandatory for flows.
Ideally this logic would be added automatically when a NAT rule is added but for now and extension to the Add-NsxEdgeInterfaceAddress method just to add secondary addresses would be good