Skip to content

Commit

Permalink
Project import generated by Copybara.
Browse files Browse the repository at this point in the history
FolderOrigin-RevId: /usr/local/google/home/alexmasi/copybara/temp/folder-destination13802450362339821391/.
  • Loading branch information
GGN Engprod Team authored and alexmasi committed May 7, 2024
1 parent 06bbab5 commit 203b379
Show file tree
Hide file tree
Showing 24 changed files with 74,584 additions and 53,291 deletions.
2 changes: 1 addition & 1 deletion binding/grpcutil/testservice/gen/testservice.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

27 changes: 4 additions & 23 deletions binding/grpcutil/testservice/gen/testservice_grpc.pb.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

55 changes: 45 additions & 10 deletions gnmi/oc/enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -7845,6 +7845,39 @@ const (
PlatformTypes_COMPONENT_REBOOT_REASON_REBOOT_USER_INITIATED E_PlatformTypes_COMPONENT_REBOOT_REASON = 3
)

// E_PlatformTypes_ComponentLastPoweroffReasonTrigger is a derived int64 type which is used to represent
// the enumerated node PlatformTypes_ComponentLastPoweroffReasonTrigger. An additional value named
// PlatformTypes_ComponentLastPoweroffReasonTrigger_UNSET is added to the enumeration which is used as
// the nil value, indicating that the enumeration was not explicitly set by
// the program importing the generated structures.
type E_PlatformTypes_ComponentLastPoweroffReasonTrigger int64

// IsYANGGoEnum ensures that PlatformTypes_ComponentLastPoweroffReasonTrigger implements the yang.GoEnum
// interface. This ensures that PlatformTypes_ComponentLastPoweroffReasonTrigger can be identified as a
// mapped type for a YANG enumeration.
func (E_PlatformTypes_ComponentLastPoweroffReasonTrigger) IsYANGGoEnum() {}

// ΛMap returns the value lookup map associated with PlatformTypes_ComponentLastPoweroffReasonTrigger.
func (E_PlatformTypes_ComponentLastPoweroffReasonTrigger) ΛMap() map[string]map[int64]ygot.EnumDefinition {
return ΛEnum
}

// String returns a logging-friendly string for E_PlatformTypes_ComponentLastPoweroffReasonTrigger.
func (e E_PlatformTypes_ComponentLastPoweroffReasonTrigger) String() string {
return ygot.EnumLogString(e, int64(e), "E_PlatformTypes_ComponentLastPoweroffReasonTrigger")
}

const (
// PlatformTypes_ComponentLastPoweroffReasonTrigger_UNSET corresponds to the value UNSET of PlatformTypes_ComponentLastPoweroffReasonTrigger
PlatformTypes_ComponentLastPoweroffReasonTrigger_UNSET E_PlatformTypes_ComponentLastPoweroffReasonTrigger = 0
// PlatformTypes_ComponentLastPoweroffReasonTrigger_USER_INITIATED corresponds to the value USER_INITIATED of PlatformTypes_ComponentLastPoweroffReasonTrigger
PlatformTypes_ComponentLastPoweroffReasonTrigger_USER_INITIATED E_PlatformTypes_ComponentLastPoweroffReasonTrigger = 1
// PlatformTypes_ComponentLastPoweroffReasonTrigger_SYSTEM_INITIATED corresponds to the value SYSTEM_INITIATED of PlatformTypes_ComponentLastPoweroffReasonTrigger
PlatformTypes_ComponentLastPoweroffReasonTrigger_SYSTEM_INITIATED E_PlatformTypes_ComponentLastPoweroffReasonTrigger = 2
// PlatformTypes_ComponentLastPoweroffReasonTrigger_POWER_FAILURE corresponds to the value POWER_FAILURE of PlatformTypes_ComponentLastPoweroffReasonTrigger
PlatformTypes_ComponentLastPoweroffReasonTrigger_POWER_FAILURE E_PlatformTypes_ComponentLastPoweroffReasonTrigger = 3
)

// E_PlatformTypes_ComponentRedundantRoleSwitchoverReasonTrigger is a derived int64 type which is used to represent
// the enumerated node PlatformTypes_ComponentRedundantRoleSwitchoverReasonTrigger. An additional value named
// PlatformTypes_ComponentRedundantRoleSwitchoverReasonTrigger_UNSET is added to the enumeration which is used as
Expand Down Expand Up @@ -7975,26 +8008,28 @@ const (
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_FABRIC E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 5
// PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_FAN corresponds to the value FAN of PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_FAN E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 6
// PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_FAN_TRAY corresponds to the value FAN_TRAY of PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_FAN_TRAY E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 7
// PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_FRU corresponds to the value FRU of PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_FRU E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 7
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_FRU E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 8
// PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_INTEGRATED_CIRCUIT corresponds to the value INTEGRATED_CIRCUIT of PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_INTEGRATED_CIRCUIT E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 8
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_INTEGRATED_CIRCUIT E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 9
// PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_LINECARD corresponds to the value LINECARD of PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_LINECARD E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 9
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_LINECARD E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 10
// PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_OPTICAL_CHANNEL corresponds to the value OPTICAL_CHANNEL of PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_OPTICAL_CHANNEL E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 10
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_OPTICAL_CHANNEL E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 11
// PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_PORT corresponds to the value PORT of PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_PORT E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 11
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_PORT E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 12
// PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_POWER_SUPPLY corresponds to the value POWER_SUPPLY of PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_POWER_SUPPLY E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 12
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_POWER_SUPPLY E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 13
// PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_SENSOR corresponds to the value SENSOR of PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_SENSOR E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 13
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_SENSOR E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 14
// PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_STORAGE corresponds to the value STORAGE of PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_STORAGE E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 14
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_STORAGE E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 15
// PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_TRANSCEIVER corresponds to the value TRANSCEIVER of PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_TRANSCEIVER E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 15
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_TRANSCEIVER E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 16
// PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_WIFI_ACCESS_POINT corresponds to the value WIFI_ACCESS_POINT of PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_WIFI_ACCESS_POINT E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 16
PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT_WIFI_ACCESS_POINT E_PlatformTypes_OPENCONFIG_HARDWARE_COMPONENT = 17
)

// E_PlatformTypes_OPENCONFIG_SOFTWARE_COMPONENT is a derived int64 type which is used to represent
Expand Down
29 changes: 19 additions & 10 deletions gnmi/oc/enum_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -1794,6 +1794,11 @@ var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
2: {Name: "REBOOT_POWER_FAILURE", DefiningModule: "openconfig-platform-types"},
3: {Name: "REBOOT_USER_INITIATED", DefiningModule: "openconfig-platform-types"},
},
"E_PlatformTypes_ComponentLastPoweroffReasonTrigger": {
1: {Name: "USER_INITIATED"},
2: {Name: "SYSTEM_INITIATED"},
3: {Name: "POWER_FAILURE"},
},
"E_PlatformTypes_ComponentRedundantRoleSwitchoverReasonTrigger": {
1: {Name: "USER_INITIATED"},
2: {Name: "SYSTEM_INITIATED"},
Expand All @@ -1814,16 +1819,17 @@ var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
4: {Name: "CPU", DefiningModule: "openconfig-platform-types"},
5: {Name: "FABRIC", DefiningModule: "openconfig-platform-types"},
6: {Name: "FAN", DefiningModule: "openconfig-platform-types"},
7: {Name: "FRU", DefiningModule: "openconfig-platform-types"},
8: {Name: "INTEGRATED_CIRCUIT", DefiningModule: "openconfig-platform-types"},
9: {Name: "LINECARD", DefiningModule: "openconfig-platform-types"},
10: {Name: "OPTICAL_CHANNEL", DefiningModule: "openconfig-transport-types"},
11: {Name: "PORT", DefiningModule: "openconfig-platform-types"},
12: {Name: "POWER_SUPPLY", DefiningModule: "openconfig-platform-types"},
13: {Name: "SENSOR", DefiningModule: "openconfig-platform-types"},
14: {Name: "STORAGE", DefiningModule: "openconfig-platform-types"},
15: {Name: "TRANSCEIVER", DefiningModule: "openconfig-platform-types"},
16: {Name: "WIFI_ACCESS_POINT", DefiningModule: "openconfig-platform-types"},
7: {Name: "FAN_TRAY", DefiningModule: "openconfig-platform-types"},
8: {Name: "FRU", DefiningModule: "openconfig-platform-types"},
9: {Name: "INTEGRATED_CIRCUIT", DefiningModule: "openconfig-platform-types"},
10: {Name: "LINECARD", DefiningModule: "openconfig-platform-types"},
11: {Name: "OPTICAL_CHANNEL", DefiningModule: "openconfig-transport-types"},
12: {Name: "PORT", DefiningModule: "openconfig-platform-types"},
13: {Name: "POWER_SUPPLY", DefiningModule: "openconfig-platform-types"},
14: {Name: "SENSOR", DefiningModule: "openconfig-platform-types"},
15: {Name: "STORAGE", DefiningModule: "openconfig-platform-types"},
16: {Name: "TRANSCEIVER", DefiningModule: "openconfig-platform-types"},
17: {Name: "WIFI_ACCESS_POINT", DefiningModule: "openconfig-platform-types"},
},
"E_PlatformTypes_OPENCONFIG_SOFTWARE_COMPONENT": {
1: {Name: "BIOS", DefiningModule: "openconfig-platform-types"},
Expand Down Expand Up @@ -2697,6 +2703,9 @@ func initΛEnumTypes() {
"/components/component/software-module/state/module-type": {
reflect.TypeOf((E_PlatformSoftware_SOFTWARE_MODULE_TYPE)(0)),
},
"/components/component/state/last-poweroff-reason/trigger": {
reflect.TypeOf((E_PlatformTypes_ComponentLastPoweroffReasonTrigger)(0)),
},
"/components/component/state/last-reboot-reason": {
reflect.TypeOf((E_PlatformTypes_COMPONENT_REBOOT_REASON)(0)),
},
Expand Down
8 changes: 4 additions & 4 deletions gnmi/oc/interfaces/interfaces-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -17275,7 +17275,7 @@ type Interface_PenaltyBasedAiedPathAny struct {
*ygnmi.NodePath
}

// DecayHalfLife (leaf): The amount of time after which an interfaces penalty is decreased by half. Decay-half-time should not be more than max-suppress-time.
// DecayHalfLife (leaf): The amount of time after which an interface's penalty is decreased by half. Decay-half-time should not be more than max-suppress-time.
//
// Defining module: "openconfig-interfaces"
// Instantiating module: "openconfig-interfaces"
Expand All @@ -17293,7 +17293,7 @@ func (n *Interface_PenaltyBasedAiedPath) DecayHalfLife() *Interface_PenaltyBased
return ps
}

// DecayHalfLife (leaf): The amount of time after which an interfaces penalty is decreased by half. Decay-half-time should not be more than max-suppress-time.
// DecayHalfLife (leaf): The amount of time after which an interface's penalty is decreased by half. Decay-half-time should not be more than max-suppress-time.
//
// Defining module: "openconfig-interfaces"
// Instantiating module: "openconfig-interfaces"
Expand Down Expand Up @@ -17347,7 +17347,7 @@ func (n *Interface_PenaltyBasedAiedPathAny) FlapPenalty() *Interface_PenaltyBase
return ps
}

// MaxSuppressTime (leaf): Maximum time an interface can remain damped since the last link down event no matter how unstable it has been prior to this period of stability. In a damped state, the interfaces state change will not be advertised.
// MaxSuppressTime (leaf): Maximum time an interface can remain damped since the last link down event no matter how unstable it has been prior to this period of stability. In a damped state, the interface's state change will not be advertised.
//
// Defining module: "openconfig-interfaces"
// Instantiating module: "openconfig-interfaces"
Expand All @@ -17365,7 +17365,7 @@ func (n *Interface_PenaltyBasedAiedPath) MaxSuppressTime() *Interface_PenaltyBas
return ps
}

// MaxSuppressTime (leaf): Maximum time an interface can remain damped since the last link down event no matter how unstable it has been prior to this period of stability. In a damped state, the interfaces state change will not be advertised.
// MaxSuppressTime (leaf): Maximum time an interface can remain damped since the last link down event no matter how unstable it has been prior to this period of stability. In a damped state, the interface's state change will not be advertised.
//
// Defining module: "openconfig-interfaces"
// Instantiating module: "openconfig-interfaces"
Expand Down
Loading

0 comments on commit 203b379

Please sign in to comment.