Skip to content

Commit 3ed6302

Browse files
committed
bgp community定数をcamel caseに変更
1 parent cee88b2 commit 3ed6302

File tree

1 file changed

+15
-15
lines changed

1 file changed

+15
-15
lines changed

pkg/controller/controller.go

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -71,27 +71,27 @@ const (
7171
)
7272

7373
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")
7979
)
8080

8181
var (
8282
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,
8888
}
8989
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,
9595
}
9696
)
9797

0 commit comments

Comments
 (0)