peer

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2019 License: ISC Imports: 4 Imported by: 2

Documentation

Overview

Package peer is the client.Network.BgpPeer namespace.

Normalized object: Entry

Index

Constants

View Source
const (
	ReflectorClientNonClient    = "non-client"
	ReflectorClientClient       = "client"
	ReflectorClientMeshedClient = "meshed-client"
)

Valid values for ReflectorClient.

View Source
const (
	PeeringTypeBilateral   = "bilateral"
	PeeringTypeUnspecified = "unspecified"
)

Valid values for PeeringType.

View Source
const (
	BfdProfileInherit = "Inherit-vr-global-setting"
	BfdProfileNone    = "None"
)

Valid values for BfdProfile, besides an actual BFD profile's name.

View Source
const (
	AddressFamilyTypeIpv4 = "ipv4"
	AddressFamilyTypeIpv6 = "ipv6"
)

Valid values for AddressFamilyType.

View Source
const MaxPrefixesUnlimited = "unlimited"

Valid non-int value for MaxPrefixes.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name                             string
	Enable                           bool
	PeerAs                           string
	LocalAddressInterface            string
	LocalAddressIp                   string
	PeerAddressIp                    string
	ReflectorClient                  string
	PeeringType                      string
	MaxPrefixes                      string
	AuthProfile                      string
	KeepAliveInterval                int
	MultiHop                         int
	OpenDelayTime                    int
	HoldTime                         int
	IdleHoldTime                     int
	AllowIncomingConnections         bool
	IncomingConnectionsRemotePort    int
	AllowOutgoingConnections         bool
	OutgoingConnectionsLocalPort     int
	BfdProfile                       string // 7.1+
	EnableMpBgp                      bool   // 8.0+
	AddressFamilyType                string // 8.0+
	SubsequentAddressFamilyUnicast   bool   // 8.0+
	SubsequentAddressFamilyMulticast bool   // 8.0+
	EnableSenderSideLoopDetection    bool   // 8.0+
	MinRouteAdvertisementInterval    int    // 8.1+
}

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

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 FwPeer

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

FwPeer is the client.Network.BgpPeer namespace.

func (*FwPeer) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwPeer) Edit

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

Edit performs EDIT to create / update one object.

func (*FwPeer) Get

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

Get performs GET to retrieve information for the given uid.

func (*FwPeer) GetList

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

GetList performs GET to retrieve a list of values.

func (*FwPeer) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwPeer) Set

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

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

func (*FwPeer) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*FwPeer) ShowList

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

ShowList performs SHOW to retrieve a list of values.

type PanoPeer

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

PanoPeer is the client.Network.BgpPeer namespace.

func (*PanoPeer) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoPeer) Edit

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

Edit performs EDIT to create / update one object.

func (*PanoPeer) Get

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

Get performs GET to retrieve information for the given uid.

func (*PanoPeer) GetList

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

GetList performs GET to retrieve a list of values.

func (*PanoPeer) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoPeer) Set

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

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

func (*PanoPeer) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*PanoPeer) ShowList

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

ShowList performs SHOW to retrieve a list of values.

Directories

Path Synopsis
Package group is the client.Network.BgpPeerGroup namespace.
Package group is the client.Network.BgpPeerGroup namespace.

Jump to

Keyboard shortcuts

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