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/gdennis/copybara/temp/folder-destination5318821432131917941/.
  • Loading branch information
GGN Engprod Team authored and greg-dennis committed May 15, 2023
1 parent 18d11a4 commit e3e693d
Show file tree
Hide file tree
Showing 26 changed files with 50,591 additions and 47,192 deletions.
7 changes: 0 additions & 7 deletions binding/abstract.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ import (
frpb "github.com/openconfig/gnoi/factory_reset"
fpb "github.com/openconfig/gnoi/file"
hpb "github.com/openconfig/gnoi/healthz"
ipb "github.com/openconfig/gnoi/interface"
lpb "github.com/openconfig/gnoi/layer2"
mpb "github.com/openconfig/gnoi/mpls"
ospb "github.com/openconfig/gnoi/os"
Expand Down Expand Up @@ -225,12 +224,6 @@ func (g *AbstractGNOIClients) Healthz() hpb.HealthzClient {
return nil
}

// Interface logs a fatal unimplemented error.
func (g *AbstractGNOIClients) Interface() ipb.InterfaceClient {
log.Fatal("Interface unimplemented")
return nil
}

// Layer2 logs a fatal unimplemented error.
func (g *AbstractGNOIClients) Layer2() lpb.Layer2Client {
log.Fatal("Layer2 unimplemented")
Expand Down
2 changes: 0 additions & 2 deletions binding/binding.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ import (
frpb "github.com/openconfig/gnoi/factory_reset"
fpb "github.com/openconfig/gnoi/file"
hpb "github.com/openconfig/gnoi/healthz"
ipb "github.com/openconfig/gnoi/interface"
lpb "github.com/openconfig/gnoi/layer2"
mpb "github.com/openconfig/gnoi/mpls"
ospb "github.com/openconfig/gnoi/os"
Expand Down Expand Up @@ -209,7 +208,6 @@ type GNOIClients interface {
FactoryReset() frpb.FactoryResetClient
File() fpb.FileClient
Healthz() hpb.HealthzClient
Interface() ipb.InterfaceClient
Layer2() lpb.Layer2Client
LinkQualification() plqpb.LinkQualificationClient
MPLS() mpb.MPLSClient
Expand Down
3 changes: 3 additions & 0 deletions gnmi/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,13 @@ YANG_FILES=(
public/release/models/optical-transport/openconfig-transport-types.yang
public/release/models/ospf/openconfig-ospfv2.yang
public/release/models/p4rt/openconfig-p4rt.yang
public/release/models/platform/openconfig-platform-controller-card.yang
public/release/models/platform/openconfig-platform-cpu.yang
public/release/models/platform/openconfig-platform-ext.yang
public/release/models/platform/openconfig-platform-fabric.yang
public/release/models/platform/openconfig-platform-fan.yang
public/release/models/platform/openconfig-platform-integrated-circuit.yang
public/release/models/platform/openconfig-platform-linecard.yang
public/release/models/platform/openconfig-platform-pipeline-counters.yang
public/release/models/platform/openconfig-platform-software.yang
public/release/models/platform/openconfig-platform-transceiver.yang
Expand Down
3 changes: 3 additions & 0 deletions gnmi/oc/acl/acl-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ using the following YANG input files:
- public/release/models/optical-transport/openconfig-transport-types.yang
- public/release/models/ospf/openconfig-ospfv2.yang
- public/release/models/p4rt/openconfig-p4rt.yang
- public/release/models/platform/openconfig-platform-controller-card.yang
- public/release/models/platform/openconfig-platform-cpu.yang
- public/release/models/platform/openconfig-platform-ext.yang
- public/release/models/platform/openconfig-platform-fabric.yang
- public/release/models/platform/openconfig-platform-fan.yang
- public/release/models/platform/openconfig-platform-integrated-circuit.yang
- public/release/models/platform/openconfig-platform-linecard.yang
- public/release/models/platform/openconfig-platform-pipeline-counters.yang
- public/release/models/platform/openconfig-platform-software.yang
- public/release/models/platform/openconfig-platform-transceiver.yang
Expand Down
3 changes: 3 additions & 0 deletions gnmi/oc/ateflow/ateflow-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ using the following YANG input files:
- public/release/models/optical-transport/openconfig-transport-types.yang
- public/release/models/ospf/openconfig-ospfv2.yang
- public/release/models/p4rt/openconfig-p4rt.yang
- public/release/models/platform/openconfig-platform-controller-card.yang
- public/release/models/platform/openconfig-platform-cpu.yang
- public/release/models/platform/openconfig-platform-ext.yang
- public/release/models/platform/openconfig-platform-fabric.yang
- public/release/models/platform/openconfig-platform-fan.yang
- public/release/models/platform/openconfig-platform-integrated-circuit.yang
- public/release/models/platform/openconfig-platform-linecard.yang
- public/release/models/platform/openconfig-platform-pipeline-counters.yang
- public/release/models/platform/openconfig-platform-software.yang
- public/release/models/platform/openconfig-platform-transceiver.yang
Expand Down
3 changes: 3 additions & 0 deletions gnmi/oc/definedsets/definedsets-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ using the following YANG input files:
- public/release/models/optical-transport/openconfig-transport-types.yang
- public/release/models/ospf/openconfig-ospfv2.yang
- public/release/models/p4rt/openconfig-p4rt.yang
- public/release/models/platform/openconfig-platform-controller-card.yang
- public/release/models/platform/openconfig-platform-cpu.yang
- public/release/models/platform/openconfig-platform-ext.yang
- public/release/models/platform/openconfig-platform-fabric.yang
- public/release/models/platform/openconfig-platform-fan.yang
- public/release/models/platform/openconfig-platform-integrated-circuit.yang
- public/release/models/platform/openconfig-platform-linecard.yang
- public/release/models/platform/openconfig-platform-pipeline-counters.yang
- public/release/models/platform/openconfig-platform-software.yang
- public/release/models/platform/openconfig-platform-transceiver.yang
Expand Down
32 changes: 32 additions & 0 deletions gnmi/oc/enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,13 @@ using the following YANG input files:
- public/release/models/optical-transport/openconfig-transport-types.yang
- public/release/models/ospf/openconfig-ospfv2.yang
- public/release/models/p4rt/openconfig-p4rt.yang
- public/release/models/platform/openconfig-platform-controller-card.yang
- public/release/models/platform/openconfig-platform-cpu.yang
- public/release/models/platform/openconfig-platform-ext.yang
- public/release/models/platform/openconfig-platform-fabric.yang
- public/release/models/platform/openconfig-platform-fan.yang
- public/release/models/platform/openconfig-platform-integrated-circuit.yang
- public/release/models/platform/openconfig-platform-linecard.yang
- public/release/models/platform/openconfig-platform-pipeline-counters.yang
- public/release/models/platform/openconfig-platform-software.yang
- public/release/models/platform/openconfig-platform-transceiver.yang
Expand Down Expand Up @@ -7827,6 +7830,35 @@ const (
PlatformTypes_OPENCONFIG_SOFTWARE_COMPONENT_SOFTWARE_MODULE E_PlatformTypes_OPENCONFIG_SOFTWARE_COMPONENT = 5
)

// E_Platform_ComponentPowerType is a derived int64 type which is used to represent
// the enumerated node Platform_ComponentPowerType. An additional value named
// Platform_ComponentPowerType_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_Platform_ComponentPowerType int64

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

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

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

const (
// Platform_ComponentPowerType_UNSET corresponds to the value UNSET of Platform_ComponentPowerType
Platform_ComponentPowerType_UNSET E_Platform_ComponentPowerType = 0
// Platform_ComponentPowerType_POWER_ENABLED corresponds to the value POWER_ENABLED of Platform_ComponentPowerType
Platform_ComponentPowerType_POWER_ENABLED E_Platform_ComponentPowerType = 1
// Platform_ComponentPowerType_POWER_DISABLED corresponds to the value POWER_DISABLED of Platform_ComponentPowerType
Platform_ComponentPowerType_POWER_DISABLED E_Platform_ComponentPowerType = 2
)

// E_Platform_ComponentRedundantRole is a derived int64 type which is used to represent
// the enumerated node Platform_ComponentRedundantRole. An additional value named
// Platform_ComponentRedundantRole_UNSET is added to the enumeration which is used as
Expand Down
16 changes: 16 additions & 0 deletions gnmi/oc/enum_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,10 +41,13 @@ using the following YANG input files:
- public/release/models/optical-transport/openconfig-transport-types.yang
- public/release/models/ospf/openconfig-ospfv2.yang
- public/release/models/p4rt/openconfig-p4rt.yang
- public/release/models/platform/openconfig-platform-controller-card.yang
- public/release/models/platform/openconfig-platform-cpu.yang
- public/release/models/platform/openconfig-platform-ext.yang
- public/release/models/platform/openconfig-platform-fabric.yang
- public/release/models/platform/openconfig-platform-fan.yang
- public/release/models/platform/openconfig-platform-integrated-circuit.yang
- public/release/models/platform/openconfig-platform-linecard.yang
- public/release/models/platform/openconfig-platform-pipeline-counters.yang
- public/release/models/platform/openconfig-platform-software.yang
- public/release/models/platform/openconfig-platform-transceiver.yang
Expand Down Expand Up @@ -1773,6 +1776,10 @@ var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
4: {Name: "OPERATING_SYSTEM_UPDATE", DefiningModule: "openconfig-platform-types"},
5: {Name: "SOFTWARE_MODULE", DefiningModule: "openconfig-platform-types"},
},
"E_Platform_ComponentPowerType": {
1: {Name: "POWER_ENABLED"},
2: {Name: "POWER_DISABLED"},
},
"E_Platform_ComponentRedundantRole": {
1: {Name: "PRIMARY"},
2: {Name: "SECONDARY"},
Expand Down Expand Up @@ -2451,6 +2458,12 @@ func initΛEnumTypes() {
"/acl/state/counter-capability": {
reflect.TypeOf((E_Acl_ACL_COUNTER_CAPABILITY)(0)),
},
"/components/component/controller-card/state/power-admin-state": {
reflect.TypeOf((E_Platform_ComponentPowerType)(0)),
},
"/components/component/fabric/state/power-admin-state": {
reflect.TypeOf((E_Platform_ComponentPowerType)(0)),
},
"/components/component/integrated-circuit/pipeline-counters/errors/fabric-block/fabric-block-error/state/action": {
reflect.TypeOf((E_FabricBlockError_Action)(0)),
},
Expand Down Expand Up @@ -2481,6 +2494,9 @@ func initΛEnumTypes() {
"/components/component/integrated-circuit/pipeline-counters/errors/queueing-block/queueing-block-error/state/level": {
reflect.TypeOf((E_FabricBlockError_Level)(0)),
},
"/components/component/linecard/state/power-admin-state": {
reflect.TypeOf((E_Platform_ComponentPowerType)(0)),
},
"/components/component/port/breakout-mode/groups/group/state/breakout-speed": {
reflect.TypeOf((E_IfEthernet_ETHERNET_SPEED)(0)),
},
Expand Down
3 changes: 3 additions & 0 deletions gnmi/oc/gnmicollectormetadata/gnmicollectormetadata-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ using the following YANG input files:
- public/release/models/optical-transport/openconfig-transport-types.yang
- public/release/models/ospf/openconfig-ospfv2.yang
- public/release/models/p4rt/openconfig-p4rt.yang
- public/release/models/platform/openconfig-platform-controller-card.yang
- public/release/models/platform/openconfig-platform-cpu.yang
- public/release/models/platform/openconfig-platform-ext.yang
- public/release/models/platform/openconfig-platform-fabric.yang
- public/release/models/platform/openconfig-platform-fan.yang
- public/release/models/platform/openconfig-platform-integrated-circuit.yang
- public/release/models/platform/openconfig-platform-linecard.yang
- public/release/models/platform/openconfig-platform-pipeline-counters.yang
- public/release/models/platform/openconfig-platform-software.yang
- public/release/models/platform/openconfig-platform-transceiver.yang
Expand Down
3 changes: 3 additions & 0 deletions gnmi/oc/interfaces/interfaces-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ using the following YANG input files:
- public/release/models/optical-transport/openconfig-transport-types.yang
- public/release/models/ospf/openconfig-ospfv2.yang
- public/release/models/p4rt/openconfig-p4rt.yang
- public/release/models/platform/openconfig-platform-controller-card.yang
- public/release/models/platform/openconfig-platform-cpu.yang
- public/release/models/platform/openconfig-platform-ext.yang
- public/release/models/platform/openconfig-platform-fabric.yang
- public/release/models/platform/openconfig-platform-fan.yang
- public/release/models/platform/openconfig-platform-integrated-circuit.yang
- public/release/models/platform/openconfig-platform-linecard.yang
- public/release/models/platform/openconfig-platform-pipeline-counters.yang
- public/release/models/platform/openconfig-platform-software.yang
- public/release/models/platform/openconfig-platform-transceiver.yang
Expand Down
3 changes: 3 additions & 0 deletions gnmi/oc/keychain/keychain-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ using the following YANG input files:
- public/release/models/optical-transport/openconfig-transport-types.yang
- public/release/models/ospf/openconfig-ospfv2.yang
- public/release/models/p4rt/openconfig-p4rt.yang
- public/release/models/platform/openconfig-platform-controller-card.yang
- public/release/models/platform/openconfig-platform-cpu.yang
- public/release/models/platform/openconfig-platform-ext.yang
- public/release/models/platform/openconfig-platform-fabric.yang
- public/release/models/platform/openconfig-platform-fan.yang
- public/release/models/platform/openconfig-platform-integrated-circuit.yang
- public/release/models/platform/openconfig-platform-linecard.yang
- public/release/models/platform/openconfig-platform-pipeline-counters.yang
- public/release/models/platform/openconfig-platform-software.yang
- public/release/models/platform/openconfig-platform-transceiver.yang
Expand Down
3 changes: 3 additions & 0 deletions gnmi/oc/lacp/lacp-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ using the following YANG input files:
- public/release/models/optical-transport/openconfig-transport-types.yang
- public/release/models/ospf/openconfig-ospfv2.yang
- public/release/models/p4rt/openconfig-p4rt.yang
- public/release/models/platform/openconfig-platform-controller-card.yang
- public/release/models/platform/openconfig-platform-cpu.yang
- public/release/models/platform/openconfig-platform-ext.yang
- public/release/models/platform/openconfig-platform-fabric.yang
- public/release/models/platform/openconfig-platform-fan.yang
- public/release/models/platform/openconfig-platform-integrated-circuit.yang
- public/release/models/platform/openconfig-platform-linecard.yang
- public/release/models/platform/openconfig-platform-pipeline-counters.yang
- public/release/models/platform/openconfig-platform-software.yang
- public/release/models/platform/openconfig-platform-transceiver.yang
Expand Down
3 changes: 3 additions & 0 deletions gnmi/oc/lldp/lldp-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,13 @@ using the following YANG input files:
- public/release/models/optical-transport/openconfig-transport-types.yang
- public/release/models/ospf/openconfig-ospfv2.yang
- public/release/models/p4rt/openconfig-p4rt.yang
- public/release/models/platform/openconfig-platform-controller-card.yang
- public/release/models/platform/openconfig-platform-cpu.yang
- public/release/models/platform/openconfig-platform-ext.yang
- public/release/models/platform/openconfig-platform-fabric.yang
- public/release/models/platform/openconfig-platform-fan.yang
- public/release/models/platform/openconfig-platform-integrated-circuit.yang
- public/release/models/platform/openconfig-platform-linecard.yang
- public/release/models/platform/openconfig-platform-pipeline-counters.yang
- public/release/models/platform/openconfig-platform-software.yang
- public/release/models/platform/openconfig-platform-transceiver.yang
Expand Down
Loading

0 comments on commit e3e693d

Please sign in to comment.