Skip to content

Commit a82f259

Browse files
committed
chore: fix json tags for bgp status addition
Signed-off-by: Sergei Lukianov <[email protected]>
1 parent 2c7e171 commit a82f259

File tree

3 files changed

+15
-16
lines changed

3 files changed

+15
-16
lines changed

api/gwint/v1alpha1/gatewayagent_types.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ type GatewayState struct {
6363
VPCs map[string]VPCStatus `json:"vpcs,omitempty"`
6464
// Peerings is the status of the VPCs peerings where key is VPC1->VPC2 and data is for one direction only
6565
Peerings map[string]PeeringStatus `json:"peerings,omitempty"`
66-
// BGP is BGP status derived from BMP/FRR, keyed by VRF
66+
// BGP is BGP status
6767
BGP BGPStatus `json:"bgp,omitempty"`
6868
}
6969

@@ -127,9 +127,9 @@ const (
127127

128128
type BGPNeighborStatus struct {
129129
Enabled bool `json:"enabled,omitempty"`
130-
LocalAS uint32 `json:"localAs,omitempty"`
131-
PeerAS uint32 `json:"peerAs,omitempty"`
132-
RemoteRouterID string `json:"remoteRouterId,omitempty"`
130+
LocalAS uint32 `json:"localAS,omitempty"`
131+
PeerAS uint32 `json:"peerAS,omitempty"`
132+
RemoteRouterID string `json:"remoteRouterID,omitempty"`
133133

134134
SessionState BGPNeighborSessionState `json:"sessionState,omitempty"`
135135
ConnectionsDropped uint64 `json:"connectionsDropped,omitempty"`
@@ -139,7 +139,7 @@ type BGPNeighborStatus struct {
139139
Messages BGPMessages `json:"messages,omitempty"`
140140
IPv4UnicastPrefixes BGPNeighborPrefixes `json:"ipv4UnicastPrefixes,omitempty"`
141141
IPv6UnicastPrefixes BGPNeighborPrefixes `json:"ipv6UnicastPrefixes,omitempty"`
142-
L2VPNEVPNPrefixes BGPNeighborPrefixes `json:"l2vpnEvpnPrefixes,omitempty"`
142+
L2VPNEVPNPrefixes BGPNeighborPrefixes `json:"l2VPNEVPNPrefixes,omitempty"`
143143
}
144144

145145
type BGPMessages struct {

config/crd/bases/gwint.githedgehog.com_gatewayagents.yaml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -325,8 +325,7 @@ spec:
325325
that includes FRR as well
326326
properties:
327327
bgp:
328-
description: BGP is BGP status derived from BMP/FRR, keyed by
329-
VRF
328+
description: BGP is BGP status
330329
properties:
331330
vrfs:
332331
additionalProperties:
@@ -366,7 +365,7 @@ spec:
366365
format: int32
367366
type: integer
368367
type: object
369-
l2vpnEvpnPrefixes:
368+
l2VPNEVPNPrefixes:
370369
properties:
371370
received:
372371
format: int32
@@ -380,7 +379,7 @@ spec:
380379
type: object
381380
lastResetReason:
382381
type: string
383-
localAs:
382+
localAS:
384383
format: int32
385384
type: integer
386385
messages:
@@ -428,10 +427,10 @@ spec:
428427
type: integer
429428
type: object
430429
type: object
431-
peerAs:
430+
peerAS:
432431
format: int32
433432
type: integer
434-
remoteRouterId:
433+
remoteRouterID:
435434
type: string
436435
sessionState:
437436
description: BGPNeighborSessionState represents

docs/api.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -569,17 +569,17 @@ _Appears in:_
569569
| Field | Description | Default | Validation |
570570
| --- | --- | --- | --- |
571571
| `enabled` _boolean_ | | | |
572-
| `localAs` _integer_ | | | |
573-
| `peerAs` _integer_ | | | |
574-
| `remoteRouterId` _string_ | | | |
572+
| `localAS` _integer_ | | | |
573+
| `peerAS` _integer_ | | | |
574+
| `remoteRouterID` _string_ | | | |
575575
| `sessionState` _[BGPNeighborSessionState](#bgpneighborsessionstate)_ | | | Enum: [unset idle connect active open established] <br /> |
576576
| `connectionsDropped` _integer_ | | | |
577577
| `establishedTransitions` _integer_ | | | |
578578
| `lastResetReason` _string_ | | | |
579579
| `messages` _[BGPMessages](#bgpmessages)_ | | | |
580580
| `ipv4UnicastPrefixes` _[BGPNeighborPrefixes](#bgpneighborprefixes)_ | | | |
581581
| `ipv6UnicastPrefixes` _[BGPNeighborPrefixes](#bgpneighborprefixes)_ | | | |
582-
| `l2vpnEvpnPrefixes` _[BGPNeighborPrefixes](#bgpneighborprefixes)_ | | | |
582+
| `l2VPNEVPNPrefixes` _[BGPNeighborPrefixes](#bgpneighborprefixes)_ | | | |
583583

584584

585585
#### BGPStatus
@@ -758,7 +758,7 @@ _Appears in:_
758758
| `frr` _[FRRStatus](#frrstatus)_ | FRR is the status of the FRR daemon | | |
759759
| `vpcs` _object (keys:string, values:[VPCStatus](#vpcstatus))_ | VPCs is the status of the VPCs where key is the vpc (vpcinfo) name | | |
760760
| `peerings` _object (keys:string, values:[PeeringStatus](#peeringstatus))_ | Peerings is the status of the VPCs peerings where key is VPC1->VPC2 and data is for one direction only | | |
761-
| `bgp` _[BGPStatus](#bgpstatus)_ | BGP is BGP status derived from BMP/FRR, keyed by VRF | | |
761+
| `bgp` _[BGPStatus](#bgpstatus)_ | BGP is BGP status | | |
762762

763763

764764
#### PeeringStatus

0 commit comments

Comments
 (0)