Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MasqueradeIPs ¶
type MasqueradeIPs struct { // GatewayRouter is the masquerade IP for gateway router GatewayRouter *net.IPNet // ManagementPort is the masquerade IP for management port ManagementPort *net.IPNet }
MasqueradeIPs contains the Masquerade IPs needed for user defined network topology
func AllocateV4MasqueradeIPs ¶
func AllocateV4MasqueradeIPs(networkID int) (*MasqueradeIPs, error)
AllocateV4MasqueradeIPs will return the gateway router and management port masquerade IPv4 addresses calculated from the networkID argument
func AllocateV6MasqueradeIPs ¶
func AllocateV6MasqueradeIPs(networkID int) (*MasqueradeIPs, error)
AllocateV4MasqueradeIPs will return the gateway router and management port masquerade IPv6 addresses calculated from the networkID argument
Click to show internal directories.
Click to hide internal directories.