ipv4

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: ISC Imports: 3 Imported by: 2

Documentation

Overview

Package ipv4 is the client.Network.RedistributionProfile namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	ActionRedist   = "redist"
	ActionNoRedist = "no-redist"
)

These are valid values for the Action param.

View Source
const (
	TypeBgp     = "bgp"
	TypeConnect = "connect"
	TypeOspf    = "ospf"
	TypeRip     = "rip"
	TypeStatic  = "static"
)

These are valid values for Types.

View Source
const (
	OspfPathTypeIntraArea = "intra-area"
	OspfPathTypeInterArea = "inter-area"
	OspfPathTypeExt1      = "ext-1"
	OspfPathTypeExt2      = "ext-2"
)

These are valid values for OspfPathTypes.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name                   string
	Priority               int
	Action                 string
	Types                  []string
	Interfaces             []string
	Destinations           []string
	NextHops               []string
	OspfPathTypes          []string
	OspfAreas              []string
	OspfTags               []string
	BgpCommunities         []string
	BgpExtendedCommunities []string
}

Entry is a normalized, version independent representation of a redist profile.

func (*Entry) Copy

func (o *Entry) Copy(s Entry)

Copy copies the information from source Entry `s` to this object. As the Name field relates to the XPATH of this object, this field is not copied.

type FwIpv4

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

FwIpv4 is the client.Network.RedistributionProfile namespace.

func (*FwIpv4) Delete

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

Delete removes the given objects.

Objects 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 one object.

func (*FwIpv4) Get

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

Get performs GET to retrieve information for the given uid.

func (*FwIpv4) GetList

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

GetList performs GET to retrieve a list of values.

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 objects.

func (*FwIpv4) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*FwIpv4) ShowList

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

ShowList performs SHOW to retrieve a list of values.

type PanoIpv4

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

PanoIpv4 is the client.Network.RedistributionProfile namespace.

func (*PanoIpv4) Delete

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

Delete removes the given objects.

Objects 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 one object.

func (*PanoIpv4) Get

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

Get performs GET to retrieve information for the given uid.

func (*PanoIpv4) GetList

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

GetList performs GET to retrieve a list of values.

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 objects.

func (*PanoIpv4) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*PanoIpv4) ShowList

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

ShowList performs SHOW to retrieve a list of values.

Jump to

Keyboard shortcuts

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