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) AllFromPanosConfig(vr, pg string) ([]Entry, error)
- func (c *Firewall) Delete(vr, pg string, e ...interface{}) error
- func (c *Firewall) Edit(vr, pg string, e Entry) error
- func (c *Firewall) FromPanosConfig(vr, pg, name string) (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) AllFromPanosConfig(tmpl, ts, vr, pg string) ([]Entry, error)
- 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) FromPanosConfig(tmpl, ts, vr, pg, name string) (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 ¶
type Firewall struct {
// contains filtered or unexported fields
}
Firewall is the client.Network.BgpPeer namespace.
func FirewallNamespace ¶
func FirewallNamespace(client util.XapiClient) *Firewall
FirewallNamespace returns an initialized namespace.
func (*Firewall) AllFromPanosConfig ¶
AllFromPanosConfig retrieves all objects stored in the retrieved config.
func (*Firewall) Delete ¶
Delete performs DELETE to remove the specified objects.
Objects can be either a string or an Entry object.
func (*Firewall) FromPanosConfig ¶
FromPanosConfig retrieves the object stored in the retrieved config.
type Panorama ¶
type Panorama struct {
// contains filtered or unexported fields
}
Panorama is the client.Network.BgpPeer namespace.
func PanoramaNamespace ¶
func PanoramaNamespace(client util.XapiClient) *Panorama
PanoramaNamespace returns an initialized namespace.
func (*Panorama) AllFromPanosConfig ¶
AllFromPanosConfig retrieves all objects stored in the retrieved config.
func (*Panorama) Delete ¶
Delete performs DELETE to remove the specified objects.
Objects can be either a string or an Entry object.
func (*Panorama) FromPanosConfig ¶
FromPanosConfig retrieves the object stored in the retrieved config.