dampening

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

Documentation

Overview

Package dampening is the client.Network.BgpDampeningProfile namespace.

Normalized object: Entry

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Entry

type Entry struct {
	Name                     string
	Enable                   bool
	Cutoff                   float64
	Reuse                    float64
	MaxHoldTime              int
	DecayHalfLifeReachable   int
	DecayHalfLifeUnreachable int
}

Entry is a normalized, version independent representation of a dampening profile.

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 FwDampening

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

FwDampening is the client.Network.BgpDampeningProfile namespace.

func (*FwDampening) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*FwDampening) Edit

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

Edit performs EDIT to create / update one object.

func (*FwDampening) Get

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

Get performs GET to retrieve information for the given uid.

func (*FwDampening) GetList

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

GetList performs GET to retrieve a list of values.

func (*FwDampening) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwDampening) Set

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

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

func (*FwDampening) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*FwDampening) ShowList

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

ShowList performs SHOW to retrieve a list of values.

type PanoDampening

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

PanoDampening is the client.Network.BgpDampeningProfile namespace.

func (*PanoDampening) Delete

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

Delete removes the given objects.

Objects can be a string or an Entry object.

func (*PanoDampening) Edit

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

Edit performs EDIT to create / update one object.

func (*PanoDampening) Get

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

Get performs GET to retrieve information for the given uid.

func (*PanoDampening) GetList

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

GetList performs GET to retrieve a list of values.

func (*PanoDampening) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoDampening) Set

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

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

func (*PanoDampening) Show

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

Show performs SHOW to retrieve information for the given uid.

func (*PanoDampening) ShowList

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