group

package
v0.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 25, 2019 License: ISC Imports: 3 Imported by: 2

Documentation

Overview

Package group is the client.Network.BgpPeerGroup namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	TypeEbgp       = "ebgp"
	TypeEbgpConfed = "ebgp-confed"
	TypeIbgp       = "ibgp"
	TypeIbgpConfed = "ibgp-confed"
)

Valid values for Type.

View Source
const (
	NextHopOriginal = "original"
	NextHopUseSelf  = "use-self"
	NextHopResolve  = "resolve"
	NextHopUsePeer  = "use-peer"
)

Valid values for ExportNextHop and ImportNextHop. NextHopResolve is valid only for ExportNextHop for TypeEbgp. NextHopUsePeer is valid only for ImportNextHop for TypeEbgp.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name                    string
	Enable                  bool
	AggregatedConfedAsPath  bool
	SoftResetWithStoredInfo bool
	Type                    string
	ExportNextHop           string
	ImportNextHop           string
	RemovePrivateAs         bool
	// contains filtered or unexported fields
}

Entry is a normalized, version independent representation of a BGP peer group.

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 FwGroup

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

FwGroup is the client.Network.BgpPeerGroup namespace.

func (*FwGroup) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwGroup) Edit

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

Edit performs EDIT to create / update one object.

func (*FwGroup) Get

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

Get performs GET to retrieve information for the given uid.

func (*FwGroup) GetList

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

GetList performs GET to retrieve a list of values.

func (*FwGroup) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwGroup) Set

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

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

func (*FwGroup) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*FwGroup) ShowList

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

ShowList performs SHOW to retrieve a list of values.

type PanoGroup

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

PanoGroup is the client.Network.BgpPeerGroup namespace.

func (*PanoGroup) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoGroup) Edit

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

Edit performs EDIT to create / update one object.

func (*PanoGroup) Get

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

Get performs GET to retrieve information for the given uid.

func (*PanoGroup) GetList

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

GetList performs GET to retrieve a list of values.

func (*PanoGroup) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoGroup) Set

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

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

func (*PanoGroup) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*PanoGroup) ShowList

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