Documentation ¶
Overview ¶
Package peer is the client.Network.BgpPeer namespace.
The "pg" param in the function signatures in this page is the peer group name.
Normalized object: Entry
Index ¶
- Constants
- type Entry
- type Firewall
- func (c *Firewall) Delete(vr, pg string, e ...interface{}) error
- func (c *Firewall) Edit(vr, pg string, e Entry) error
- func (c *Firewall) Get(vr, pg, name string) (Entry, error)
- func (c *Firewall) GetAll(vr, pg string) ([]Entry, error)
- func (c *Firewall) GetList(vr, pg string) ([]string, error)
- func (c *Firewall) Set(vr, pg string, e ...Entry) error
- func (c *Firewall) Show(vr, pg, name string) (Entry, error)
- func (c *Firewall) ShowAll(vr, pg string) ([]Entry, error)
- func (c *Firewall) ShowList(vr, pg string) ([]string, error)
- type Panorama
- func (c *Panorama) Delete(tmpl, ts, vr, pg string, e ...interface{}) error
- func (c *Panorama) Edit(tmpl, ts, vr, pg string, e Entry) error
- func (c *Panorama) Get(tmpl, ts, vr, pg, name string) (Entry, error)
- func (c *Panorama) GetAll(tmpl, ts, vr, pg string) ([]Entry, error)
- func (c *Panorama) GetList(tmpl, ts, vr, pg string) ([]string, error)
- func (c *Panorama) Set(tmpl, ts, vr, pg string, e ...Entry) error
- func (c *Panorama) Show(tmpl, ts, vr, pg, name string) (Entry, error)
- func (c *Panorama) ShowAll(tmpl, ts, vr, pg string) ([]Entry, error)
- func (c *Panorama) ShowList(tmpl, ts, vr, pg string) ([]string, error)
Constants ¶
const ( ReflectorClientNonClient = "non-client" ReflectorClientClient = "client" ReflectorClientMeshedClient = "meshed-client" )
Valid values for ReflectorClient.
const ( PeeringTypeBilateral = "bilateral" PeeringTypeUnspecified = "unspecified" )
Valid values for PeeringType.
const ( BfdProfileInherit = "Inherit-vr-global-setting" BfdProfileNone = "None" )
Valid values for BfdProfile, besides an actual BFD profile's name.
const ( AddressFamilyTypeIpv4 = "ipv4" AddressFamilyTypeIpv6 = "ipv6" )
Valid values for AddressFamilyType.
const MaxPrefixesUnlimited = "unlimited"
Valid non-int value for MaxPrefixes.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Name string Enable bool PeerAs string LocalAddressInterface string LocalAddressIp string PeerAddressIp string ReflectorClient string PeeringType string MaxPrefixes string AuthProfile string KeepAliveInterval int MultiHop int OpenDelayTime int HoldTime int IdleHoldTime int AllowIncomingConnections bool IncomingConnectionsRemotePort int AllowOutgoingConnections bool OutgoingConnectionsLocalPort int BfdProfile string // 7.1+ EnableMpBgp bool // 8.0+ AddressFamilyType string // 8.0+ SubsequentAddressFamilyUnicast bool // 8.0+ SubsequentAddressFamilyMulticast bool // 8.0+ EnableSenderSideLoopDetection bool // 8.0+ MinRouteAdvertisementInterval int // 8.1+ }
Entry is a normalized, version independent representation of a BGP peer group peer.
type Firewall ¶ added in v0.5.0
type Firewall struct {
// contains filtered or unexported fields
}
Firewall is the client.Network.BgpPeer namespace.
func FirewallNamespace ¶ added in v0.5.0
func FirewallNamespace(client util.XapiClient) *Firewall
FirewallNamespace returns an initialized namespace.
func (*Firewall) Delete ¶ added in v0.5.0
Delete performs DELETE to remove the specified objects.
Objects can be either a string or an Entry object.
func (*Firewall) Get ¶ added in v0.5.0
Get performs GET to retrieve information for the given object.
func (*Firewall) Show ¶ added in v0.5.0
Show performs SHOW to retrieve information for the given object.
type Panorama ¶ added in v0.5.0
type Panorama struct {
// contains filtered or unexported fields
}
Panorama is the client.Network.BgpPeer namespace.
func PanoramaNamespace ¶ added in v0.5.0
func PanoramaNamespace(client util.XapiClient) *Panorama
PanoramaNamespace returns an initialized namespace.
func (*Panorama) Delete ¶ added in v0.5.0
Delete performs DELETE to remove the specified objects.
Objects can be either a string or an Entry object.
func (*Panorama) Get ¶ added in v0.5.0
Get performs GET to retrieve information for the given object.
func (*Panorama) Show ¶ added in v0.5.0
Show performs SHOW to retrieve information for the given object.