router

package
v0.3.11 Latest Latest
Warning

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

Go to latest
Published: Aug 21, 2019 License: ISC Imports: 3 Imported by: 2

Documentation

Overview

Package router is the client.Network.VirtualRouter 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
	Interfaces     []string
	StaticDist     int
	StaticIpv6Dist int
	OspfIntDist    int
	OspfExtDist    int
	Ospfv3IntDist  int
	Ospfv3ExtDist  int
	IbgpDist       int
	EbgpDist       int
	RipDist        int
	// contains filtered or unexported fields
}

Entry is a normalized, version independent representation of a virtual router.

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.

func (*Entry) Defaults

func (o *Entry) Defaults()

Defaults sets params with uninitialized values to their GUI default setting.

The defaults are as follows:

  • StaticDist: 10
  • StaticIpv6Dist: 10
  • OspfIntDist: 30
  • OspfExtDist: 110
  • Ospfv3IntDist: 30
  • Ospfv3ExtDist: 110
  • IbgpDist: 200
  • EbgpDist: 20
  • RipDist: 120

type FwRouter

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

FwRouter is the client.Network.VirtualRouter namespace.

func (*FwRouter) CleanupDefault

func (c *FwRouter) CleanupDefault() error

CleanupDefault clears the `default` route configuration instead of deleting it outright. This involves unimporting the route "default" from the given vsys, then performing an `EDIT` with an empty router.Entry object.

func (*FwRouter) Delete

func (c *FwRouter) Delete(e ...interface{}) error

Delete removes the given virtual routers from the firewall.

Virtual routers can be a string or an Entry object.

func (*FwRouter) DeleteInterface

func (c *FwRouter) DeleteInterface(vr interface{}, iface string) error

DeleteInterface performs a DELETE to remove an interface from a virtual router.

The virtual router can be either a string or an Entry object.

func (*FwRouter) Edit

func (c *FwRouter) Edit(vsys string, e Entry) error

Edit performs EDIT to create / update a virtual router.

Specify a non-empty vsys to import the virtual router into the given vsys after creating, allowing the vsys to use them.

func (*FwRouter) Get

func (c *FwRouter) Get(name string) (Entry, error)

Get performs GET to retrieve information for the given virtual router.

func (*FwRouter) GetList

func (c *FwRouter) GetList() ([]string, error)

GetList performs GET to retrieve a list of virtual routers.

func (*FwRouter) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwRouter) Set

func (c *FwRouter) Set(vsys string, e ...Entry) error

Set performs SET to create / update one or more virtual routers.

Specify a non-empty vsys to import the virtual routers into the given vsys after creating, allowing the vsys to use them.

func (*FwRouter) SetInterface

func (c *FwRouter) SetInterface(vr interface{}, iface string) error

SetInterface performs a SET to add an interface to a virtual router.

The virtual router can be either a string or an Entry object.

func (*FwRouter) Show

func (c *FwRouter) Show(name string) (Entry, error)

Show performs SHOW to retrieve information for the given virtual router.

func (*FwRouter) ShowList

func (c *FwRouter) ShowList() ([]string, error)

ShowList performs SHOW to retrieve a list of virtual routers.

type PanoRouter

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

PanoRouter is the client.Network.VirtualRouter namespace.

func (*PanoRouter) CleanupDefault

func (c *PanoRouter) CleanupDefault(tmpl, ts string) error

CleanupDefault clears the `default` route configuration instead of deleting it outright. This involves unimporting the route "default" from the given vsys, then performing an `EDIT` with an empty router.Entry object.

func (*PanoRouter) Delete

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

Delete removes the given virtual routers from the firewall.

Virtual routers can be a string or an Entry object.

func (*PanoRouter) DeleteInterface

func (c *PanoRouter) DeleteInterface(tmpl, ts string, vr interface{}, iface string) error

DeleteInterface performs a DELETE to remove an interface from a virtual router.

The virtual router can be either a string or an Entry object.

func (*PanoRouter) Edit

func (c *PanoRouter) Edit(tmpl, ts, vsys string, e Entry) error

Edit performs EDIT to create / update a virtual router.

Specify a non-empty vsys to import the virtual router into the given vsys after creating, allowing the vsys to use them.

func (*PanoRouter) Get

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

Get performs GET to retrieve information for the given virtual router.

func (*PanoRouter) GetList

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

GetList performs GET to retrieve a list of virtual routers.

func (*PanoRouter) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoRouter) Set

func (c *PanoRouter) Set(tmpl, ts, vsys string, e ...Entry) error

Set performs SET to create / update one or more virtual routers.

Specify a non-empty vsys to import the virtual routers into the given vsys after creating, allowing the vsys to use them.

func (*PanoRouter) SetInterface

func (c *PanoRouter) SetInterface(tmpl, ts string, vr interface{}, iface string) error

SetInterface performs a SET to add an interface to a virtual router.

The virtual router can be either a string or an Entry object.

func (*PanoRouter) Show

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

Show performs SHOW to retrieve information for the given virtual router.

func (*PanoRouter) ShowList

func (c *PanoRouter) ShowList(tmpl, ts string) ([]string, error)

ShowList performs SHOW to retrieve a list of virtual routers.

Jump to

Keyboard shortcuts

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