Documentation ¶
Overview ¶
Package exp is the client.Network.BgpExport namespace.
Normalized object: Entry
Index ¶
- Constants
- type Entry
- type FwExp
- func (c *FwExp) Delete(vr string, e ...interface{}) error
- func (c *FwExp) Edit(vr string, e Entry) error
- func (c *FwExp) Get(vr, name string) (Entry, error)
- func (c *FwExp) GetList(vr string) ([]string, error)
- func (c *FwExp) Initialize(con util.XapiClient)
- func (c *FwExp) MoveGroup(vr string, mvt int, rule string, e ...Entry) error
- func (c *FwExp) Set(vr string, e ...Entry) error
- func (c *FwExp) Show(vr, name string) (Entry, error)
- func (c *FwExp) ShowList(vr string) ([]string, error)
- type PanoExp
- func (c *PanoExp) Delete(tmpl, ts, vr string, e ...interface{}) error
- func (c *PanoExp) Edit(tmpl, ts, vr string, e Entry) error
- func (c *PanoExp) Get(tmpl, ts, vr, name string) (Entry, error)
- func (c *PanoExp) GetList(tmpl, ts, vr string) ([]string, error)
- func (c *PanoExp) Initialize(con util.XapiClient)
- func (c *PanoExp) MoveGroup(tmpl, ts, vr string, mvt int, rule string, e ...Entry) error
- func (c *PanoExp) Set(tmpl, ts, vr string, e ...Entry) error
- func (c *PanoExp) Show(tmpl, ts, vr, name string) (Entry, error)
- func (c *PanoExp) ShowList(tmpl, ts, vr string) ([]string, error)
Constants ¶
const ( MatchRouteTableUnicast = "unicast" MatchRouteTableMulticast = "multicast" MatchRouteTableBoth = "both" )
Valid values for MatchRouteTable.
const ( ActionAllow = "allow" ActionDeny = "deny" )
Valid values for Action.
const ( OriginIgp = "igp" OriginEgp = "egp" OriginIncomplete = "incomplete" )
Valid values for Origin.
const ( CommunityTypeNone = "none" CommunityTypeRemoveAll = "remove-all" CommunityTypeRemoveRegex = "remove-regex" CommunityTypeAppend = "append" CommunityTypeOverwrite = "overwrite" )
Valid values for CommunityType.
const ( AppendNoExport = "no-export" AppendNoAdvertise = "no-advertise" AppendLocalAs = "local-as" AppendNoPeer = "nopeer" )
Valid values for CommunityValue when CommunityType is "append" or "overwrite".
const ( AsPathTypeNone = "none" AsPathTypeRemove = "remove" AsPathTypePrepend = "prepend" AsPathTypeRemoveAndPrepend = "remove-and-prepend" )
Valid values for AsPathType.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Entry ¶
type Entry struct { Name string Enable bool UsedBy []string MatchAsPathRegex string MatchCommunityRegex string MatchExtendedCommunityRegex string MatchMed string MatchRouteTable string // 8.0+ MatchAddressPrefix map[string]bool MatchNextHop []string MatchFromPeer []string Action string LocalPreference string Med string NextHop string Origin string AsPathLimit int AsPathType string AsPathValue string CommunityType string CommunityValue string ExtendedCommunityType string ExtendedCommunityValue string }
Entry is a normalized, version independent representation of a BGP export rule.
type FwExp ¶
type FwExp struct {
// contains filtered or unexported fields
}
FwExp is the client.Network.BgpExport namespace.
func (*FwExp) Delete ¶
Delete removes the given objects.
Objects can be a string or an Entry object.
func (*FwExp) Initialize ¶
func (c *FwExp) Initialize(con util.XapiClient)
Initialize is invoked by client.Initialize().
func (*FwExp) MoveGroup ¶
MoveGroup moves a logical group of BGP export rules somewhere in relation to another rule.
type PanoExp ¶
type PanoExp struct {
// contains filtered or unexported fields
}
PanoExp is the client.Network.BgpExport namespace.
func (*PanoExp) Delete ¶
Delete removes the given objects.
Objects can be a string or an Entry object.
func (*PanoExp) Initialize ¶
func (c *PanoExp) Initialize(con util.XapiClient)
Initialize is invoked by client.Initialize().
func (*PanoExp) MoveGroup ¶
MoveGroup moves a logical group of BGP export rules somewhere in relation to another rule.