neighbor

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: Jan 29, 2021 License: ISC Imports: 5 Imported by: 0

Documentation

Overview

Package neighbor is the client.Network.Ipv6NeighborDiscovery namespace.

PAN-OS 8.0+

When configuring the neighbor discovery for iType=TypeVlan, the iName param should be an empty string.

Normalized object: Config

Index

Constants

View Source
const (
	RaRouterPreferenceHigh   = "High"
	RaRouterPreferenceMedium = "Medium"
	RaRouterPreferenceLow    = "Low"
)

Valid values for RaRouterPreference.

View Source
const (
	TypeEthernet  = "ethernet"
	TypeAggregate = "aggregate-ethernet"
	TypeVlan      = "vlan"
)

Valid values for the iType param.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	EnableRa                          bool
	RaMaxInterval                     int
	RaMinInterval                     int
	RaManagedFlag                     bool
	RaOtherFlag                       bool
	RaLinkMtu                         string
	RaReachableTime                   string
	RaRetransmissionTimer             string
	RaHopLimit                        string
	RaLifetime                        int
	RaRouterPreference                string
	RaEnableConsistencyCheck          bool
	RaEnableDnsSupport                bool
	RaDnsServers                      []RaDnsServer
	RaDnsSuffixes                     []RaDnsSuffix
	EnableNdpMonitor                  bool
	EnableDuplicateAddressDetection   bool
	DuplicateAddressDetectionAttempts int
	NeighborSolicitationInterval      int
	ReachableTime                     int
	Neighbors                         []Neighbor
}

Config is a normalized, version independent representation of an IPv6 neighbor discovery configuration.

Due to the fact that RaLifetime is a rangedint field where not only is 0 a valid value, but the default is 1800, this field will always be present in the marshalled XML sent to PAN-OS if either of the following is true:

* another Ra* field is non-zero * this field is a value other than 1800

PAN-OS 8.0+

func (*Config) Copy

func (o *Config) Copy(s Config)

Copy copies the information from source Config `s` to this object.

func (Config) Specify

func (o Config) Specify(v version.Number) (string, interface{})

type Firewall

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

Firewall is the client.Network.Ipv6NeighborDiscovery namespace.

func FirewallNamespace

func FirewallNamespace(client util.XapiClient) *Firewall

FirewallNamespace returns an initialized namespace.

func (*Firewall) Delete

func (c *Firewall) Delete(iType, iName, subName string) error

Delete performs DELETE to remove the config.

func (*Firewall) Edit

func (c *Firewall) Edit(iType, iName, subName string, e Config) error

Edit performs EDIT to configure the specified object.

func (*Firewall) Get

func (c *Firewall) Get(iType, iName, subName string) (Config, error)

Get performs GET to retrieve configuration for the given object.

func (*Firewall) Set

func (c *Firewall) Set(iType, iName, subName string, e Config) error

Set performs SET to configure the specified objects.

func (*Firewall) Show

func (c *Firewall) Show(iType, iName, subName string) (Config, error)

Show performs SHOW to retrieve configuration for the given object.

type Neighbor

type Neighbor struct {
	Name       string
	MacAddress string
}

type Panorama

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

Panorama is the client.Network.Ipv6NeighborDiscovery namespace.

func PanoramaNamespace

func PanoramaNamespace(client util.XapiClient) *Panorama

PanoramaNamespace returns an initialized namespace.

func (*Panorama) Delete

func (c *Panorama) Delete(tmpl, ts, iType, iName, subName string) error

Delete performs DELETE to remove the config.

func (*Panorama) Edit

func (c *Panorama) Edit(tmpl, ts, iType, iName, subName string, e Config) error

Edit performs EDIT to configure the specified object.

func (*Panorama) Get

func (c *Panorama) Get(tmpl, ts, iType, iName, subName string) (Config, error)

Get performs GET to retrieve configuration for the given object.

func (*Panorama) Set

func (c *Panorama) Set(tmpl, ts, iType, iName, subName string, e Config) error

Set performs SET to configure the specified objects.

func (*Panorama) Show

func (c *Panorama) Show(tmpl, ts, iType, iName, subName string) (Config, error)

Show performs SHOW to retrieve configuration for the given object.

type RaDnsServer

type RaDnsServer struct {
	Name     string
	Lifetime int
}

type RaDnsSuffix

type RaDnsSuffix struct {
	Name     string
	Lifetime int
}

Jump to

Keyboard shortcuts

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