@@ -71,27 +71,27 @@ const (
71
71
)
72
72
73
73
var (
74
- bgpCommunity_Fault = bgpserver .MustParseCommunity ("65000:1" )
75
- bgpCommunity_Candidate = bgpserver .MustParseCommunity ("65000:2" )
76
- bgpCommunity_Primary = bgpserver .MustParseCommunity ("65000:3" )
77
- bgpCommunity_Replica = bgpserver .MustParseCommunity ("65000:4" )
78
- bgpCommunity_Anchor = bgpserver .MustParseCommunity ("65000:10" )
74
+ bgpCommunityFault = bgpserver .MustParseCommunity ("65000:1" )
75
+ bgpCommunityCandidate = bgpserver .MustParseCommunity ("65000:2" )
76
+ bgpCommunityPrimary = bgpserver .MustParseCommunity ("65000:3" )
77
+ bgpCommunityReplica = bgpserver .MustParseCommunity ("65000:4" )
78
+ bgpCommunityAnchor = bgpserver .MustParseCommunity ("65000:10" )
79
79
)
80
80
81
81
var (
82
82
bgpCommunityToState = map [bgpserver.Community ]State {
83
- bgpCommunity_Fault : StateFault ,
84
- bgpCommunity_Candidate : StateCandidate ,
85
- bgpCommunity_Primary : StatePrimary ,
86
- bgpCommunity_Replica : StateReplica ,
87
- bgpCommunity_Anchor : StateAnchor ,
83
+ bgpCommunityFault : StateFault ,
84
+ bgpCommunityCandidate : StateCandidate ,
85
+ bgpCommunityPrimary : StatePrimary ,
86
+ bgpCommunityReplica : StateReplica ,
87
+ bgpCommunityAnchor : StateAnchor ,
88
88
}
89
89
stateToBgpCommunity = map [State ]bgpserver.Community {
90
- StateFault : bgpCommunity_Fault ,
91
- StateCandidate : bgpCommunity_Candidate ,
92
- StatePrimary : bgpCommunity_Primary ,
93
- StateReplica : bgpCommunity_Replica ,
94
- StateAnchor : bgpCommunity_Anchor ,
90
+ StateFault : bgpCommunityFault ,
91
+ StateCandidate : bgpCommunityCandidate ,
92
+ StatePrimary : bgpCommunityPrimary ,
93
+ StateReplica : bgpCommunityReplica ,
94
+ StateAnchor : bgpCommunityAnchor ,
95
95
}
96
96
)
97
97
0 commit comments