ip

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: May 30, 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

Function to transform 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