This repository has been archived by the owner on Nov 2, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 8
/
bgp_policy.go
51 lines (40 loc) · 1.51 KB
/
bgp_policy.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
// This module contains data definitions for BGP routing policy.
// It augments the base routing-policy module with BGP-specific
// options for conditions and actions.
package bgp_policy
import (
"fmt"
"github.com/CiscoDevNet/ydk-go/ydk"
)
func init() {
ydk.YLogDebug(fmt.Sprintf("Registering top level entities for package bgp_policy"))
}
// BgpNextHopType represents type definition for specifying next-hop in policy actions
type BgpNextHopType string
const (
// special designation for local router's own
// address, i.e., next-hop-self
BgpNextHopType_SELF BgpNextHopType = "SELF"
)
// BgpSetMedType represents and setting it to the IGP cost (predefined value).
type BgpSetMedType string
const (
// set the MED value to the IGP cost toward the
// next hop for the route
BgpSetMedType_IGP BgpSetMedType = "IGP"
)
// BgpSetCommunityOptionType represents attribute in a policy action
type BgpSetCommunityOptionType string
const (
// add the specified communities to the existing
// community attribute
BgpSetCommunityOptionType_ADD BgpSetCommunityOptionType = "ADD"
// remove the specified communities from the
// existing community attribute
BgpSetCommunityOptionType_REMOVE BgpSetCommunityOptionType = "REMOVE"
// replace the existing community attribute with
// the specified communities. If an empty set is
// specified, this removes the community attribute
// from the route.
BgpSetCommunityOptionType_REPLACE BgpSetCommunityOptionType = "REPLACE"
)