bgp

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

Documentation

Overview

Package bgp is the client.Network.BgpConfig namespace.

Normalized object: Config

Index

Constants

View Source
const (
	AsFormat2Byte = "2-byte"
	AsFormat4Byte = "4-byte"
)

Valid values for AsFormat.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enable                        bool
	RouterId                      string
	AsNumber                      string // XML: local-as
	BfdProfile                    string // 7.1+ ; XML: global-bfd/profile or the word "None"
	RejectDefaultRoute            bool
	InstallRoute                  bool
	AggregateMed                  bool
	DefaultLocalPreference        string
	AsFormat                      string
	AlwaysCompareMed              bool
	DeterministicMedComparison    bool
	EcmpMultiAs                   bool // 7.0+
	EnforceFirstAs                bool // 8.0+
	EnableGracefulRestart         bool
	StaleRouteTime                int
	LocalRestartTime              int
	MaxPeerRestartTime            int
	ReflectorClusterId            string
	ConfederationMemberAs         string
	AllowRedistributeDefaultRoute bool
	// contains filtered or unexported fields
}

Config is a normalized, version independent representation of a virtual router's BGP configuration.

func (*Config) Copy

func (o *Config) Copy(s Config)

Copy copies the information from source Config `s` to this object.

type FwBgp

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

FwBgp is the client.Network.RedistributionProfile namespace.

func (*FwBgp) Delete

func (c *FwBgp) Delete(vr string) error

Delete removes the BGP config for the given virtual router.

func (*FwBgp) Edit

func (c *FwBgp) Edit(vr string, e Config) error

Edit performs EDIT to create / update the BGP config.

func (*FwBgp) Get

func (c *FwBgp) Get(vr string) (Config, error)

Get performs GET to retrieve the BGP config.

func (*FwBgp) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwBgp) Set

func (c *FwBgp) Set(vr string, e Config) error

Set performs SET to create / update the BGP config.

func (*FwBgp) Show

func (c *FwBgp) Show(vr string) (Config, error)

Show performs SHOW to retrieve the BGP config.

type PanoBgp

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

PanoBgp is the client.Network.RedistributionProfile namespace.

func (*PanoBgp) Delete

func (c *PanoBgp) Delete(tmpl, ts, vr string) error

Delete removes the BGP config for the given virtual router.

func (*PanoBgp) Edit

func (c *PanoBgp) Edit(tmpl, ts, vr string, e Config) error

Edit performs EDIT to create / update the BGP config.

func (*PanoBgp) Get

func (c *PanoBgp) Get(tmpl, ts, vr string) (Config, error)

Get performs GET to retrieve the BGP config.

func (*PanoBgp) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoBgp) Set

func (c *PanoBgp) Set(tmpl, ts, vr string, e Config) error

Set performs SET to create / update the BGP config.

func (*PanoBgp) Show

func (c *PanoBgp) Show(tmpl, ts, vr string) (Config, error)

Show performs SHOW to retrieve the BGP config.

Directories

Path Synopsis
Package aggregate is the client.Network.BgpAggregation namespace.
Package aggregate is the client.Network.BgpAggregation namespace.
filter/advertise
Package advertise is the client.Network.BgpAggAdvertiseFilter namespace.
Package advertise is the client.Network.BgpAggAdvertiseFilter namespace.
filter/suppress
Package suppress is the client.Network.BgpAggSuppressFilter namespace.
Package suppress is the client.Network.BgpAggSuppressFilter namespace.
Package conadv is the client.Network.BgpConditionalAdv namespace.
Package conadv is the client.Network.BgpConditionalAdv namespace.
filter/advertise
Package advertise is the client.Network.BgpConAdvAdvertiseFilter namespace.
Package advertise is the client.Network.BgpConAdvAdvertiseFilter namespace.
filter/nonexist
Package nonexist is the client.Network.BgpConAdvNonExistFilter namespace.
Package nonexist is the client.Network.BgpConAdvNonExistFilter namespace.
Package exp is the client.Network.BgpExport namespace.
Package exp is the client.Network.BgpExport namespace.
Package imp is the client.Network.BgpImport namespace.
Package imp is the client.Network.BgpImport namespace.
Package peer is the client.Network.BgpPeer namespace.
Package peer is the client.Network.BgpPeer namespace.
group
Package group is the client.Network.BgpPeerGroup namespace.
Package group is the client.Network.BgpPeerGroup namespace.
profile
auth
Package auth is the client.Network.BgpAuthProfile namespace.
Package auth is the client.Network.BgpAuthProfile namespace.
dampening
Package dampening is the client.Network.BgpDampeningProfile namespace.
Package dampening is the client.Network.BgpDampeningProfile namespace.
Package redist is the client.Network.BgpRedistRule namespace.
Package redist is the client.Network.BgpRedistRule namespace.

Jump to

Keyboard shortcuts

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