vlan

package
v0.3.7 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2019 License: ISC Imports: 4 Imported by: 2

Documentation

Overview

Package vlan is the client.Network.VlanInterface 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
	Comment                string
	NetflowProfile         string
	StaticIps              []string // ordered
	EnableDhcp             bool
	CreateDhcpDefaultRoute bool
	DhcpDefaultRouteMetric int
	ManagementProfile      string
	Mtu                    int
	AdjustTcpMss           bool
	Ipv4MssAdjust          int
	Ipv6MssAdjust          int
	// contains filtered or unexported fields
}

Entry is a normalized, version independent representation of a VLAN interface.

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 FwVlan

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

FwVlan is the client.Network.VlanInterface namespace.

func (*FwVlan) Delete

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

Delete removes the given VLAN interface(s) from the firewall.

Interfaces can be a string or an Entry object.

func (*FwVlan) Edit

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

Edit performs EDIT to create / update the specified VLAN interface.

Specifying a non-empty vsys will import the interface into that vsys, allowing the vsys to use it.

func (*FwVlan) Get

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

Get performs GET to retrieve information for the given VLAN interface.

func (*FwVlan) GetList

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

GetList performs GET to retrieve a list of VLAN interfaces.

func (*FwVlan) Initialize

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

Initialize is invoked by client.Initialize().

func (*FwVlan) Set

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

Set performs SET to create / update one or more VLAN interfaces.

Specifying a non-empty vsys will import the interfaces into that vsys, allowing the vsys to use them.

func (*FwVlan) Show

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

Show performs SHOW to retrieve information for the given VLAN interface.

func (*FwVlan) ShowList

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

ShowList performs SHOW to retrieve a list of VLAN interfaces.

type PanoVlan

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

PanoVlan is the client.Network.VlanInterface namespace.

func (*PanoVlan) Delete

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

Delete removes the given VLAN interface(s) from the firewall.

Interfaces can be a string or an Entry object.

func (*PanoVlan) Edit

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

Edit performs EDIT to create / update the specified VLAN interface.

Specifying a non-empty vsys will import the interface into that vsys, allowing the vsys to use it.

func (*PanoVlan) Get

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

Get performs GET to retrieve information for the given VLAN interface.

func (*PanoVlan) GetList

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

GetList performs GET to retrieve a list of VLAN interfaces.

func (*PanoVlan) Initialize

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

Initialize is invoked by client.Initialize().

func (*PanoVlan) Set

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

Set performs SET to create / update one or more VLAN interfaces.

Specifying a non-empty vsys will import the interfaces into that vsys, allowing the vsys to use them.

func (*PanoVlan) Show

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

Show performs SHOW to retrieve information for the given VLAN interface.

func (*PanoVlan) ShowList

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

ShowList performs SHOW to retrieve a list of VLAN interfaces.

Jump to

Keyboard shortcuts

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