-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: (EVPN GW API) Add "components" field to each API object's status
This is an API enhancement for the EVPN GW use case. The addition of a "components" field in the status sector of each API object will enable the capture of the state and details that are generated by the different subscribed components (FRR component, Linux component, etc...) which are realizing the configuration for each API object. Signed-off-by: Dimitrios Markou <[email protected]>
- Loading branch information
Showing
15 changed files
with
1,246 additions
and
873 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,42 @@ | ||
// SPDX-License-Identifier: Apache-2.0 | ||
// Copyright (C) 2023 Nordix Foundation. | ||
// Copyright (c) 2024 Ericsson AB. | ||
|
||
// (-- api-linter: core::0216::synonyms=disabled | ||
// aip.dev/not-precedent: Word "Status" will be used instead of "State". --) | ||
|
||
syntax = "proto3"; | ||
|
||
package opi_api.network.evpn_gw.v1alpha1; | ||
|
||
option go_package = "github.com/opiproject/opi-api/network/evpn-gw/v1alpha1/gen/go"; | ||
option java_package = "opi_api.network.evpn_gw.v1alpha1"; | ||
option java_multiple_files = true; | ||
option java_outer_classname = "ComponentProto"; | ||
|
||
import "google/api/field_behavior.proto"; | ||
|
||
// Component represents a subscribed component (e.g. FRR component, Linux component etc...) | ||
// (-- api-linter: core::0123::resource-annotation=disabled | ||
// aip.dev/not-precedent: The name here is not the unique identifier of a DB object | ||
// just the name of the component that is subscribed. --) | ||
message Component { | ||
// Component's name | ||
string name = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
// Component's status | ||
CompStatus status = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
// Component's details in the form of json string | ||
string details = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; | ||
} | ||
|
||
// CompStatus reflects the status of a component | ||
enum CompStatus { | ||
// component status is "unspecified" | ||
COMP_STATUS_UNSPECIFIED = 0; | ||
// component status is "pending" | ||
COMP_STATUS_PENDING = 1; | ||
// component status is "success" | ||
COMP_STATUS_SUCCESS = 2; | ||
// component status is "error" | ||
COMP_STATUS_ERROR = 3; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.