imp

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 imp is the client.Network.BgpImport 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"
)

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
	Dampening                   string
	LocalPreference             string
	Med                         string
	Weight                      int
	NextHop                     string
	Origin                      string
	AsPathLimit                 int
	AsPathType                  string
	CommunityType               string
	CommunityValue              string
	ExtendedCommunityType       string
	ExtendedCommunityValue      string
}

Entry is a normalized, version independent representation of a BGP import 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 FwImp

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

FwImp is the client.Network.BgpImport namespace.

func (*FwImp) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwImp) Edit

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

Edit performs EDIT to create / update one object.

func (*FwImp) Get

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

Get performs GET to retrieve information for the given uid.

func (*FwImp) GetList

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

GetList performs GET to retrieve a list of values.

func (*FwImp) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwImp) MoveGroup

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

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

func (*FwImp) Set

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

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

func (*FwImp) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*FwImp) ShowList

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

ShowList performs SHOW to retrieve a list of values.

type PanoImp

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

PanoImp is the client.Network.BgpImport namespace.

func (*PanoImp) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoImp) Edit

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

Edit performs EDIT to create / update one object.

func (*PanoImp) Get

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

Get performs GET to retrieve information for the given uid.

func (*PanoImp) GetList

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

GetList performs GET to retrieve a list of values.

func (*PanoImp) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoImp) MoveGroup

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

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

func (*PanoImp) Set

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

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

func (*PanoImp) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*PanoImp) ShowList

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