Documentation ¶
Overview ¶
Package vlan is the client.Network.Vlan namespace.
Normalized object: Entry
Index ¶
- type Entry
- type FwVlan
- func (c *FwVlan) Delete(e ...interface{}) error
- func (c *FwVlan) DeleteInterface(vlan interface{}, iface string) error
- func (c *FwVlan) Edit(vsys string, e Entry) error
- func (c *FwVlan) Get(name string) (Entry, error)
- func (c *FwVlan) GetList() ([]string, error)
- func (c *FwVlan) Initialize(con util.XapiClient)
- func (c *FwVlan) Set(vsys string, e ...Entry) error
- func (c *FwVlan) SetInterface(vlan interface{}, iface string, rmMacs, addMacs []string) error
- func (c *FwVlan) Show(name string) (Entry, error)
- func (c *FwVlan) ShowList() ([]string, error)
- type PanoVlan
- func (c *PanoVlan) Delete(tmpl, ts string, e ...interface{}) error
- func (c *PanoVlan) DeleteInterface(tmpl, ts string, vlan interface{}, iface string) error
- func (c *PanoVlan) Edit(tmpl, ts, vsys string, e Entry) error
- func (c *PanoVlan) Get(tmpl, ts, name string) (Entry, error)
- func (c *PanoVlan) GetList(tmpl, ts string) ([]string, error)
- func (c *PanoVlan) Initialize(con util.XapiClient)
- func (c *PanoVlan) Set(tmpl, ts, vsys string, e ...Entry) error
- func (c *PanoVlan) SetInterface(tmpl, ts string, vlan interface{}, iface string, rmMacs, addMacs []string) error
- func (c *PanoVlan) Show(tmpl, ts, name string) (Entry, error)
- func (c *PanoVlan) 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 VlanInterface string Interfaces []string // unordered StaticMacs map[string]string }
Entry is a normalized, version independent representation of a VLAN.
Static MAC addresses are given as a map[string] string, where the key is the MAC address and the value is the interface it should be associated with.
type FwVlan ¶
type FwVlan struct {
// contains filtered or unexported fields
}
FwVlan is the client.Network.Vlan namespace.
func (*FwVlan) Delete ¶
Delete removes the given VLAN(s) from the firewall.
VLANs can be a string or an Entry object.
func (*FwVlan) DeleteInterface ¶ added in v0.2.0
DeleteInterface performs a DELETE to remove an interface from a VLAN.
The VLAN can be either a string or an Entry object.
All MAC addresses referencing this interface are deleted.
func (*FwVlan) Edit ¶
Edit performs EDIT to create / update a VLAN.
Specify a non-empty vsys to import the VLAN into the given vsys after creating, allowing the vsys to use it.
func (*FwVlan) Initialize ¶
func (c *FwVlan) Initialize(con util.XapiClient)
Initialize is invoked by client.Initialize().
func (*FwVlan) Set ¶
Set performs SET to create / update one or more VLANs.
Specify a non-empty vsys to import the VLAN(s) into the given vsys after creating, allowing the vsys to use them.
func (*FwVlan) SetInterface ¶ added in v0.2.0
SetInterface performs a SET to add an interface to a VLAN.
The VLAN can be either a string or an Entry object. The iface variable is the interface. The rmMacs and addMacs params are MAC addresses to remove/add that will reference the iface interface.
type PanoVlan ¶
type PanoVlan struct {
// contains filtered or unexported fields
}
PanoVlan is the client.Network.Vlan namespace.
func (*PanoVlan) Delete ¶
Delete removes the given VLAN(s) from the firewall.
VLANs can be a string or an Entry object.
func (*PanoVlan) DeleteInterface ¶ added in v0.2.0
DeleteInterface performs a DELETE to remove an interface from a VLAN.
The VLAN can be either a string or an Entry object.
All MAC addresses referencing this interface are deleted.
func (*PanoVlan) Edit ¶
Edit performs EDIT to create / update a VLAN.
Specify a non-empty vsys to import the VLAN into the given vsys after creating, allowing the vsys to use it.
func (*PanoVlan) Initialize ¶
func (c *PanoVlan) Initialize(con util.XapiClient)
Initialize is invoked by client.Initialize().
func (*PanoVlan) Set ¶
Set performs SET to create / update one or more VLANs.
Specify a non-empty vsys to import the VLAN(s) into the given vsys after creating, allowing the vsys to use them.
func (*PanoVlan) SetInterface ¶ added in v0.2.0
func (c *PanoVlan) SetInterface(tmpl, ts string, vlan interface{}, iface string, rmMacs, addMacs []string) error
SetInterface performs a SET to add an interface to a VLAN.
The VLAN can be either a string or an Entry object. The iface variable is the interface. The rmMacs and addMacs params are MAC addresses to remove/add that will reference the iface interface.