Documentation ¶
Overview ¶
Package router is the client.Network.VirtualRouter namespace.
Normalized object: Entry
Index ¶
- type Entry
- type FwRouter
- func (c *FwRouter) CleanupDefault() error
- func (c *FwRouter) Delete(e ...interface{}) error
- func (c *FwRouter) DeleteInterface(vr interface{}, iface string) error
- func (c *FwRouter) Edit(vsys string, e Entry) error
- func (c *FwRouter) Get(name string) (Entry, error)
- func (c *FwRouter) GetList() ([]string, error)
- func (c *FwRouter) Initialize(con util.XapiClient)
- func (c *FwRouter) Set(vsys string, e ...Entry) error
- func (c *FwRouter) SetInterface(vr interface{}, iface string) error
- func (c *FwRouter) Show(name string) (Entry, error)
- func (c *FwRouter) ShowList() ([]string, error)
- type PanoRouter
- func (c *PanoRouter) CleanupDefault(tmpl, ts string) error
- func (c *PanoRouter) Delete(tmpl, ts string, e ...interface{}) error
- func (c *PanoRouter) DeleteInterface(tmpl, ts string, vr interface{}, iface string) error
- func (c *PanoRouter) Edit(tmpl, ts, vsys string, e Entry) error
- func (c *PanoRouter) Get(tmpl, ts, name string) (Entry, error)
- func (c *PanoRouter) GetList(tmpl, ts string) ([]string, error)
- func (c *PanoRouter) Initialize(con util.XapiClient)
- func (c *PanoRouter) Set(tmpl, ts, vsys string, e ...Entry) error
- func (c *PanoRouter) SetInterface(tmpl, ts string, vr interface{}, iface string) error
- func (c *PanoRouter) Show(tmpl, ts, name string) (Entry, error)
- func (c *PanoRouter) ShowList(tmpl, ts string) ([]string, error)
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 ¶
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 ¶
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 ¶
Delete removes the given virtual routers from the firewall.
Virtual routers can be a string or an Entry object.
func (*FwRouter) DeleteInterface ¶
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 ¶
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) Initialize ¶
func (c *FwRouter) Initialize(con util.XapiClient)
Initialize is invoked by client.Initialize().
func (*FwRouter) Set ¶
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 ¶
SetInterface performs a SET to add an interface to a virtual router.
The virtual router can be either a string or an Entry object.
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.