udn

package
v0.0.0-...-2393416 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetUDNGatewayMasqueradeIPs

func GetUDNGatewayMasqueradeIPs(networkID int) ([]*net.IPNet, error)

GetUDNGatewayMasqueradeIPs returns the list of gateway router masqueradeIPs for the given UDN's networkID

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL