Skip to content
This repository has been archived by the owner on Oct 28, 2022. It is now read-only.

No method to add secondary IP address to NSX ESG interfaces #430

Open
kevsterd opened this issue Nov 14, 2017 · 3 comments
Open

No method to add secondary IP address to NSX ESG interfaces #430

kevsterd opened this issue Nov 14, 2017 · 3 comments
Milestone

Comments

@kevsterd
Copy link

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

@alagoutte
Copy link
Contributor

i think missing a Set-NsxEdgeInterfaceAddress cmdlet for modify (Primary and) Secondary Address of one interface

@kevsterd
Copy link
Author

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.

@nmbradford
Copy link
Contributor

you could do this manually as follows -

  • $xml = get-nsxedge
  • modify $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 No change ESG or DLR admin password from PowerNSX #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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants