bgp

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: ISC Imports: 5 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.

func (Config) Specify added in v0.5.0

func (o Config) Specify(v version.Number) (string, interface{})

type Firewall added in v0.5.0

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

Firewall is the client.Network.BgpConfig namespace.

func FirewallNamespace added in v0.5.0

func FirewallNamespace(client util.XapiClient) *Firewall

FirewallNamespace returns an initialized namespace.

func (*Firewall) Delete added in v0.5.0

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

Delete performs DELETE to remove the config.

func (*Firewall) Edit added in v0.5.0

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

Edit performs EDIT to configure the specified object.

func (*Firewall) FromPanosConfig added in v0.7.0

func (c *Firewall) FromPanosConfig(vr string) (Config, error)

FromPanosConfig retrieves the object stored in the retrieved config.

func (*Firewall) Get added in v0.5.0

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

Get performs GET to retrieve configuration for the given object.

func (*Firewall) Set added in v0.5.0

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

Set performs SET to configure the specified objects.

func (*Firewall) Show added in v0.5.0

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

Show performs SHOW to retrieve configuration for the given object.

type Panorama added in v0.5.0

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

Panorama is the client.Network.BgpConfig namespace.

func PanoramaNamespace added in v0.5.0

func PanoramaNamespace(client util.XapiClient) *Panorama

PanoramaNamespace returns an initialized namespace.

func (*Panorama) Delete added in v0.5.0

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

Delete performs DELETE to remove the config.

func (*Panorama) Edit added in v0.5.0

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

Edit performs EDIT to configure the specified object.

func (*Panorama) FromPanosConfig added in v0.7.0

func (c *Panorama) FromPanosConfig(tmpl, ts, vr string) (Config, error)

FromPanosConfig retrieves the object stored in the retrieved config.

func (*Panorama) Get added in v0.5.0

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

Get performs GET to retrieve configuration for the given object.

func (*Panorama) Set added in v0.5.0

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

Set performs SET to configure the specified objects.

func (*Panorama) Show added in v0.5.0

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

Show performs SHOW to retrieve configuration for the given object.

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