exp

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: 5 Imported by: 2

Documentation

Overview

Package exp is the client.Network.BgpExport namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	MatchRouteTableUnicast   = "unicast"
	MatchRouteTableMulticast = "multicast"
	MatchRouteTableBoth      = "both"
)

Valid values for MatchRouteTable.

View Source
const (
	ActionAllow = "allow"
	ActionDeny  = "deny"
)

Valid values for Action.

View Source
const (
	OriginIgp        = "igp"
	OriginEgp        = "egp"
	OriginIncomplete = "incomplete"
)

Valid values for Origin.

View Source
const (
	CommunityTypeNone        = "none"
	CommunityTypeRemoveAll   = "remove-all"
	CommunityTypeRemoveRegex = "remove-regex"
	CommunityTypeAppend      = "append"
	CommunityTypeOverwrite   = "overwrite"
)

Valid values for CommunityType.

View Source
const (
	AppendNoExport    = "no-export"
	AppendNoAdvertise = "no-advertise"
	AppendLocalAs     = "local-as"
	AppendNoPeer      = "nopeer"
)

Valid values for CommunityValue when CommunityType is "append" or "overwrite".

View Source
const (
	AsPathTypeNone             = "none"
	AsPathTypeRemove           = "remove"
	AsPathTypePrepend          = "prepend"
	AsPathTypeRemoveAndPrepend = "remove-and-prepend"
)

Valid values for AsPathType.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name                        string
	Enable                      bool
	UsedBy                      []string
	MatchAsPathRegex            string
	MatchCommunityRegex         string
	MatchExtendedCommunityRegex string
	MatchMed                    string
	MatchRouteTable             string // 8.0+
	MatchAddressPrefix          map[string]bool
	MatchNextHop                []string
	MatchFromPeer               []string
	Action                      string
	LocalPreference             string
	Med                         string
	NextHop                     string
	Origin                      string
	AsPathLimit                 int
	AsPathType                  string
	AsPathValue                 string
	CommunityType               string
	CommunityValue              string
	ExtendedCommunityType       string
	ExtendedCommunityValue      string
}

Entry is a normalized, version independent representation of a BGP export rule.

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 FwExp

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

FwExp is the client.Network.BgpExport namespace.

func (*FwExp) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwExp) Edit

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

Edit performs EDIT to create / update one object.

func (*FwExp) Get

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

Get performs GET to retrieve information for the given uid.

func (*FwExp) GetList

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

GetList performs GET to retrieve a list of values.

func (*FwExp) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwExp) MoveGroup

func (c *FwExp) MoveGroup(vr string, mvt int, rule string, e ...Entry) error

MoveGroup moves a logical group of BGP export rules somewhere in relation to another rule.

func (*FwExp) Set

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

Set performs SET to create / update one or more objects.

func (*FwExp) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*FwExp) ShowList

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

ShowList performs SHOW to retrieve a list of values.

type PanoExp

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

PanoExp is the client.Network.BgpExport namespace.

func (*PanoExp) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoExp) Edit

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

Edit performs EDIT to create / update one object.

func (*PanoExp) Get

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

Get performs GET to retrieve information for the given uid.

func (*PanoExp) GetList

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

GetList performs GET to retrieve a list of values.

func (*PanoExp) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoExp) MoveGroup

func (c *PanoExp) MoveGroup(tmpl, ts, vr string, mvt int, rule string, e ...Entry) error

MoveGroup moves a logical group of BGP export rules somewhere in relation to another rule.

func (*PanoExp) Set

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

Set performs SET to create / update one or more objects.

func (*PanoExp) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*PanoExp) ShowList

func (c *PanoExp) 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