ip

package
v0.10.2 Latest Latest
Warning

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

Go to latest
Published: Nov 11, 2020 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DiffFromCIDRs

func DiffFromCIDRs(allowCIDR *net.IPNet, exceptCIDRs []*net.IPNet) ([]*net.IPNet, error)

This function takes in one allow CIDR and multiple except CIDRs and gives diff CIDRs in allowCIDR eliminating except CIDRs. It currently supports only IPv4. except CIDR input can be changed.

func IPNetToNetIPNet

func IPNetToNetIPNet(ipNet *v1beta1.IPNet) *net.IPNet

Function to transform Antrea IPNet to net.IPNet

func NetIPNetToIPNet

func NetIPNetToIPNet(ipNet *net.IPNet) *v1beta1.IPNet

NetIPNetToIPNet transforms net.IPNet to Antrea IPNet

Types

This section is empty.

Jump to

Keyboard shortcuts

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