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-destination12330373112495834501/.
  • Loading branch information
GGN Engprod Team authored and greg-dennis committed Nov 16, 2023
1 parent 6b96397 commit 138ca11
Show file tree
Hide file tree
Showing 32 changed files with 56,533 additions and 46,643 deletions.
2 changes: 2 additions & 0 deletions gnmi/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,8 @@ YANG_FILES=(
public/release/models/sampling/openconfig-sampling-sflow.yang
public/release/models/segment-routing/openconfig-segment-routing-types.yang
public/release/models/system/openconfig-system.yang
public/release/models/system/openconfig-system-bootz.yang
public/release/models/system/openconfig-system-controlplane.yang
public/release/models/types/openconfig-inet-types.yang
public/release/models/types/openconfig-types.yang
public/release/models/types/openconfig-yang-types.yang
Expand Down
11 changes: 0 additions & 11 deletions gnmi/gnmi.go
Original file line number Diff line number Diff line change
Expand Up @@ -278,17 +278,6 @@ func Get[T any](t testing.TB, dev DeviceOrOpts, q ygnmi.SingletonQuery[T]) T {
return v
}

// GetConfig fetches the value of a SingletonQuery with a ONCE subscription,
// failing the test fatally if no value is present at the path.
// Use Lookup to also get metadata or tolerate no value present.
//
// Deprecated: Use Get instead. This function was only a workaround for type inference issues in
// versions of Go before 1.21.
func GetConfig[T any](t testing.TB, dev DeviceOrOpts, q ygnmi.ConfigQuery[T]) T {
t.Helper()
return Get[T](t, dev, q)
}

type watchAwaiter[T any] interface {
Await() (*ygnmi.Value[T], error)
}
Expand Down
2 changes: 2 additions & 0 deletions gnmi/oc/acl/acl-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down
2 changes: 2 additions & 0 deletions gnmi/oc/ateflow/ateflow-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down
2 changes: 2 additions & 0 deletions gnmi/oc/definedsets/definedsets-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down
47 changes: 47 additions & 0 deletions gnmi/oc/enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down Expand Up @@ -1354,6 +1356,51 @@ const (
Bgp_RemovePrivateAsOption_PRIVATE_AS_REPLACE_ALL E_Bgp_RemovePrivateAsOption = 2
)

// E_Bootz_Status is a derived int64 type which is used to represent
// the enumerated node Bootz_Status. An additional value named
// Bootz_Status_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_Bootz_Status int64

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

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

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

const (
// Bootz_Status_UNSET corresponds to the value UNSET of Bootz_Status
Bootz_Status_UNSET E_Bootz_Status = 0
// Bootz_Status_BOOTZ_UNSPECIFIED corresponds to the value BOOTZ_UNSPECIFIED of Bootz_Status
Bootz_Status_BOOTZ_UNSPECIFIED E_Bootz_Status = 1
// Bootz_Status_BOOTZ_SENT corresponds to the value BOOTZ_SENT of Bootz_Status
Bootz_Status_BOOTZ_SENT E_Bootz_Status = 2
// Bootz_Status_BOOTZ_RECEIVED corresponds to the value BOOTZ_RECEIVED of Bootz_Status
Bootz_Status_BOOTZ_RECEIVED E_Bootz_Status = 3
// Bootz_Status_BOOTZ_CONFIGURATION_APPLIED corresponds to the value BOOTZ_CONFIGURATION_APPLIED of Bootz_Status
Bootz_Status_BOOTZ_CONFIGURATION_APPLIED E_Bootz_Status = 4
// Bootz_Status_BOOTZ_OK corresponds to the value BOOTZ_OK of Bootz_Status
Bootz_Status_BOOTZ_OK E_Bootz_Status = 5
// Bootz_Status_BOOTZ_OV_INVALID corresponds to the value BOOTZ_OV_INVALID of Bootz_Status
Bootz_Status_BOOTZ_OV_INVALID E_Bootz_Status = 6
// Bootz_Status_BOOTZ_OS_UPGRADE_IN_PROGRESS corresponds to the value BOOTZ_OS_UPGRADE_IN_PROGRESS of Bootz_Status
Bootz_Status_BOOTZ_OS_UPGRADE_IN_PROGRESS E_Bootz_Status = 7
// Bootz_Status_BOOTZ_OS_UPGRADE_COMPLETE corresponds to the value BOOTZ_OS_UPGRADE_COMPLETE of Bootz_Status
Bootz_Status_BOOTZ_OS_UPGRADE_COMPLETE E_Bootz_Status = 8
// Bootz_Status_BOOTZ_OS_INVALID_IMAGE corresponds to the value BOOTZ_OS_INVALID_IMAGE of Bootz_Status
Bootz_Status_BOOTZ_OS_INVALID_IMAGE E_Bootz_Status = 9
// Bootz_Status_BOOTZ_CONFIGURATION_INVALID corresponds to the value BOOTZ_CONFIGURATION_INVALID of Bootz_Status
Bootz_Status_BOOTZ_CONFIGURATION_INVALID E_Bootz_Status = 10
)

// E_Capability_Flags is a derived int64 type which is used to represent
// the enumerated node Capability_Flags. An additional value named
// Capability_Flags_UNSET is added to the enumeration which is used as
Expand Down
29 changes: 29 additions & 0 deletions gnmi/oc/enum_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down Expand Up @@ -339,6 +341,18 @@ var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
1: {Name: "PRIVATE_AS_REMOVE_ALL", DefiningModule: "openconfig-bgp-types"},
2: {Name: "PRIVATE_AS_REPLACE_ALL", DefiningModule: "openconfig-bgp-types"},
},
"E_Bootz_Status": {
1: {Name: "BOOTZ_UNSPECIFIED"},
2: {Name: "BOOTZ_SENT"},
3: {Name: "BOOTZ_RECEIVED"},
4: {Name: "BOOTZ_CONFIGURATION_APPLIED"},
5: {Name: "BOOTZ_OK"},
6: {Name: "BOOTZ_OV_INVALID"},
7: {Name: "BOOTZ_OS_UPGRADE_IN_PROGRESS"},
8: {Name: "BOOTZ_OS_UPGRADE_COMPLETE"},
9: {Name: "BOOTZ_OS_INVALID_IMAGE"},
10: {Name: "BOOTZ_CONFIGURATION_INVALID"},
},
"E_Capability_Flags": {
1: {Name: "FLOOD"},
2: {Name: "DOWN"},
Expand Down Expand Up @@ -4752,6 +4766,21 @@ func initΛEnumTypes() {
"/system/alarms/alarm/state/type-id": {
reflect.TypeOf((E_AlarmTypes_OPENCONFIG_ALARM_TYPE_ID)(0)),
},
"/system/bootz/state/status": {
reflect.TypeOf((E_Bootz_Status)(0)),
},
"/system/control-plane-traffic/egress/acl/acl-set/config/type": {
reflect.TypeOf((E_Acl_ACL_TYPE)(0)),
},
"/system/control-plane-traffic/egress/acl/acl-set/state/type": {
reflect.TypeOf((E_Acl_ACL_TYPE)(0)),
},
"/system/control-plane-traffic/ingress/acl/acl-set/config/type": {
reflect.TypeOf((E_Acl_ACL_TYPE)(0)),
},
"/system/control-plane-traffic/ingress/acl/acl-set/state/type": {
reflect.TypeOf((E_Acl_ACL_TYPE)(0)),
},
"/system/cpus/cpu/state/index": {
reflect.TypeOf((E_Cpu_Index)(0)),
},
Expand Down
2 changes: 2 additions & 0 deletions gnmi/oc/gnmicollectormetadata/gnmicollectormetadata-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down
2 changes: 2 additions & 0 deletions gnmi/oc/interfaces/interfaces-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down
2 changes: 2 additions & 0 deletions gnmi/oc/keychain/keychain-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down
2 changes: 2 additions & 0 deletions gnmi/oc/lacp/lacp-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down
2 changes: 2 additions & 0 deletions gnmi/oc/lldp/lldp-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down
2 changes: 2 additions & 0 deletions gnmi/oc/netinstbgp/netinstbgp-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down
2 changes: 2 additions & 0 deletions gnmi/oc/netinstisis/netinstisis-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down
2 changes: 2 additions & 0 deletions gnmi/oc/networkinstance/networkinstance-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down
2 changes: 2 additions & 0 deletions gnmi/oc/ocpath/ocpath.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down
2 changes: 2 additions & 0 deletions gnmi/oc/platform/platform-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down
2 changes: 2 additions & 0 deletions gnmi/oc/qos/qos-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down
2 changes: 2 additions & 0 deletions gnmi/oc/routingpolicy/routingpolicy-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down
2 changes: 2 additions & 0 deletions gnmi/oc/sampling/sampling-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,8 @@ using the following YANG input files:
- public/release/models/sampling/openconfig-sampling-sflow.yang
- public/release/models/segment-routing/openconfig-segment-routing-types.yang
- public/release/models/system/openconfig-system.yang
- public/release/models/system/openconfig-system-bootz.yang
- public/release/models/system/openconfig-system-controlplane.yang
- public/release/models/types/openconfig-inet-types.yang
- public/release/models/types/openconfig-types.yang
- public/release/models/types/openconfig-yang-types.yang
Expand Down
Loading

0 comments on commit 138ca11

Please sign in to comment.