Documentation ¶
Overview ¶
Package imp is the client.Network.BgpImport namespace.
Normalized object: Entry
Index ¶
- Constants
- type Entry
- type FwImp
- func (c *FwImp) Delete(vr string, e ...interface{}) error
- func (c *FwImp) Edit(vr string, e Entry) error
- func (c *FwImp) Get(vr, name string) (Entry, error)
- func (c *FwImp) GetList(vr string) ([]string, error)
- func (c *FwImp) Initialize(con util.XapiClient)
- func (c *FwImp) MoveGroup(vr string, mvt int, rule string, e ...Entry) error
- func (c *FwImp) Set(vr string, e ...Entry) error
- func (c *FwImp) Show(vr, name string) (Entry, error)
- func (c *FwImp) ShowList(vr string) ([]string, error)
- type PanoImp
- func (c *PanoImp) Delete(tmpl, ts, vr string, e ...interface{}) error
- func (c *PanoImp) Edit(tmpl, ts, vr string, e Entry) error
- func (c *PanoImp) Get(tmpl, ts, vr, name string) (Entry, error)
- func (c *PanoImp) GetList(tmpl, ts, vr string) ([]string, error)
- func (c *PanoImp) Initialize(con util.XapiClient)
- func (c *PanoImp) MoveGroup(tmpl, ts, vr string, mvt int, rule string, e ...Entry) error
- func (c *PanoImp) Set(tmpl, ts, vr string, e ...Entry) error
- func (c *PanoImp) Show(tmpl, ts, vr, name string) (Entry, error)
- func (c *PanoImp) 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" )
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 Dampening string LocalPreference string Med string Weight int NextHop string Origin string AsPathLimit int AsPathType string CommunityType string CommunityValue string ExtendedCommunityType string ExtendedCommunityValue string }
Entry is a normalized, version independent representation of a BGP import rule.
type FwImp ¶
type FwImp struct {
// contains filtered or unexported fields
}
FwImp is the client.Network.BgpImport namespace.
func (*FwImp) Delete ¶
Delete removes the given objects.
Objects can be a string or an Entry object.
func (*FwImp) Initialize ¶
func (c *FwImp) Initialize(con util.XapiClient)
Initialize is invoked by client.Initialize().
func (*FwImp) MoveGroup ¶
MoveGroup moves a logical group of BGP import rules somewhere in relation to another rule.
type PanoImp ¶
type PanoImp struct {
// contains filtered or unexported fields
}
PanoImp is the client.Network.BgpImport namespace.
func (*PanoImp) Delete ¶
Delete removes the given objects.
Objects can be a string or an Entry object.
func (*PanoImp) Initialize ¶
func (c *PanoImp) Initialize(con util.XapiClient)
Initialize is invoked by client.Initialize().
func (*PanoImp) MoveGroup ¶
MoveGroup moves a logical group of BGP import rules somewhere in relation to another rule.