ospf

package
v0.10.2 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: 1

Documentation

Overview

Package ospf is the client.Network.OspfConfig namespace.

Normalized object: Config

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Enable                        bool
	RouterId                      string
	RejectDefaultRoute            bool
	AllowRedistributeDefaultRoute bool
	Rfc1583                       bool
	SpfCalculationDelay           float64
	LsaInterval                   float64
	EnableGracefulRestart         bool
	GracePeriod                   int
	HelperEnable                  bool
	StrictLsaChecking             bool
	MaxNeighborRestartTime        int
	BfdProfile                    string // BFD profile or "None" to disable BFD
	// contains filtered or unexported fields
}

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

func (*Config) Copy

func (o *Config) Copy(s Config)

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

func (Config) Specify

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

type Firewall

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

Firewall is the client.Network.BgpConfig namespace.

func FirewallNamespace

func FirewallNamespace(client util.XapiClient) *Firewall

FirewallNamespace returns an initialized namespace.

func (*Firewall) Delete

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

Delete performs DELETE to remove the config.

func (*Firewall) Edit

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

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

Get performs GET to retrieve configuration for the given object.

func (*Firewall) Set

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

Set performs SET to configure the specified objects.

func (*Firewall) Show

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

Show performs SHOW to retrieve configuration for the given object.

type Panorama

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

Panorama is the client.Network.OspfConfig namespace.

func PanoramaNamespace

func PanoramaNamespace(client util.XapiClient) *Panorama

PanoramaNamespace returns an initialized namespace.

func (*Panorama) Delete

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

Delete performs DELETE to remove the config.

func (*Panorama) Edit

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

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

Get performs GET to retrieve configuration for the given object.

func (*Panorama) Set

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

Set performs SET to configure the specified objects.

func (*Panorama) Show

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

Show performs SHOW to retrieve configuration for the given object.

Directories

Path Synopsis
Package area is the client.Network.OspfArea namespace.
Package area is the client.Network.OspfArea namespace.
iface
Package iface is the client.Network.OspfAreaInterface namespace.
Package iface is the client.Network.OspfAreaInterface namespace.
vlink
Package vlink is the client.Network.OspfAreaVirtualLink namespace.
Package vlink is the client.Network.OspfAreaVirtualLink namespace.
Package exp is the client.Network.OspfExport namespace.
Package exp is the client.Network.OspfExport namespace.
profile
auth
Package auth is the client.Network.OspfAuthProfile namespace.
Package auth is the client.Network.OspfAuthProfile namespace.

Jump to

Keyboard shortcuts

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