ipv4

package
v0.4.0 Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2020 License: ISC Imports: 4 Imported by: 2

Documentation

Overview

Package ipv4 is the client.Network.StaticRoute namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	NextHopDiscard   = "discard"
	NextHopIpAddress = "ip-address"
	NextHopNextVr    = "next-vr"
)
View Source
const (
	RouteTableNoInstall = "no install"
	RouteTableUnicast   = "unicast"
	RouteTableMulticast = "multicast"
	RouteTableBoth      = "both"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name          string
	Destination   string
	Interface     string
	Type          string
	NextHop       string
	AdminDistance int
	Metric        int
	RouteTable    string
	BfdProfile    string
}

Entry is a normalized, version independent representation of an IPv4 static route.

func (*Entry) Copy

func (o *Entry) Copy(s Entry)

type FwIpv4

type FwIpv4 struct {
	// contains filtered or unexported fields
}

FwIpv4 is the client.Network.StaticRoute namespace.

func (*FwIpv4) Delete

func (c *FwIpv4) Delete(vr string, e ...interface{}) error

Delete removes the given IPv4 routes.

IPv4 routes can be a string or an Entry object.

func (*FwIpv4) Edit

func (c *FwIpv4) Edit(vr string, e Entry) error

Edit performs EDIT to create / update an IPv4 route.

func (*FwIpv4) Get

func (c *FwIpv4) Get(vr, name string) (Entry, error)

Get performs GET to retrieve information for the given IPv4 route.

func (*FwIpv4) GetList

func (c *FwIpv4) GetList(vr string) ([]string, error)

GetList performs GET to retrieve a list of IPv4 routes.

func (*FwIpv4) Initialize

func (c *FwIpv4) Initialize(con util.XapiClient)

Initialize is invoked by client.Initialize().

func (*FwIpv4) Set

func (c *FwIpv4) Set(vr string, e ...Entry) error

Set performs SET to create / update one or more IPv4 routes.

func (*FwIpv4) Show

func (c *FwIpv4) Show(vr, name string) (Entry, error)

Show performs SHOW to retrieve information for the given IPv4 route.

func (*FwIpv4) ShowList

func (c *FwIpv4) ShowList(vr string) ([]string, error)

ShowList performs SHOW to retrieve a list of IPv4 routes.

type PanoIpv4

type PanoIpv4 struct {
	// contains filtered or unexported fields
}

PanoIpv4 is the client.Network.StaticRoute namespace.

func (*PanoIpv4) Delete

func (c *PanoIpv4) Delete(tmpl, ts, vr string, e ...interface{}) error

Delete removes the given IPv4 routes.

IPv4 routes can be a string or an Entry object.

func (*PanoIpv4) Edit

func (c *PanoIpv4) Edit(tmpl, ts, vr string, e Entry) error

Edit performs EDIT to create / update an IPv4 route.

func (*PanoIpv4) Get

func (c *PanoIpv4) Get(tmpl, ts, vr, name string) (Entry, error)

Get performs GET to retrieve information for the given IPv4 route.

func (*PanoIpv4) GetList

func (c *PanoIpv4) GetList(tmpl, ts, vr string) ([]string, error)

GetList performs GET to retrieve a list of IPv4 routes.

func (*PanoIpv4) Initialize

func (c *PanoIpv4) Initialize(con util.XapiClient)

Initialize is invoked by client.Initialize().

func (*PanoIpv4) Set

func (c *PanoIpv4) Set(tmpl, ts, vr string, e ...Entry) error

Set performs SET to create / update one or more IPv4 routes.

func (*PanoIpv4) Show

func (c *PanoIpv4) Show(tmpl, ts, vr, name string) (Entry, error)

Show performs SHOW to retrieve information for the given IPv4 route.

func (*PanoIpv4) ShowList

func (c *PanoIpv4) ShowList(tmpl, ts, vr string) ([]string, error)

ShowList performs SHOW to retrieve a list of IPv4 routes.

Jump to

Keyboard shortcuts

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