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-destination9262688334226286202/.
  • Loading branch information
GGN Engprod Team authored and greg-dennis committed Jan 25, 2024
1 parent 810fd9b commit 3ef550c
Show file tree
Hide file tree
Showing 44 changed files with 70,706 additions and 64,170 deletions.
9 changes: 4 additions & 5 deletions gnmi/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -22,18 +22,17 @@ git clone https://github.com/openconfig/public.git
wget https://raw.githubusercontent.com/openconfig/gnmi/master/metadata/yang/gnmi-collector-metadata.yang
git clone https://github.com/open-traffic-generator/models-yang.git
git clone https://github.com/openconfig/gnsi.git
# TODO(team): Remove the following line once the new gNSI version is ready for use
pushd gnsi && git checkout c2ebf3e && popd

EXCLUDE_MODULES=ietf-interfaces,openconfig-bfd,openconfig-messages

YANG_FILES=(
gnmi-collector-metadata.yang
# TODO(greg-dennis): Uncomment when b/322159436 is fixed.
# gnsi/acctz/gnsi-acctz.yang
gnsi/authz/gnsi-authz.yang
gnsi/cert/gnsi-cert.yang
gnsi/console/gnsi-console.yang
gnsi/certz/gnsi-certz.yang
gnsi/credentialz/gnsi-credentialz.yang
gnsi/pathz/gnsi-pathz.yang
gnsi/ssh/gnsi-ssh.yang
public/release/models/acl/openconfig-acl.yang
public/release/models/acl/openconfig-packet-match.yang
public/release/models/aft/openconfig-aft.yang
Expand Down
7 changes: 3 additions & 4 deletions gnmi/oc/acl/acl-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
Package acl is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.10.0: (ygot: v0.29.12)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
- gnsi/cert/gnsi-cert.yang
- gnsi/console/gnsi-console.yang
- gnsi/certz/gnsi-certz.yang
- gnsi/credentialz/gnsi-credentialz.yang
- gnsi/pathz/gnsi-pathz.yang
- gnsi/ssh/gnsi-ssh.yang
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
- public/release/models/aft/openconfig-aft.yang
Expand Down
7 changes: 3 additions & 4 deletions gnmi/oc/ateflow/ateflow-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
Package ateflow is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.10.0: (ygot: v0.29.12)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
- gnsi/cert/gnsi-cert.yang
- gnsi/console/gnsi-console.yang
- gnsi/certz/gnsi-certz.yang
- gnsi/credentialz/gnsi-credentialz.yang
- gnsi/pathz/gnsi-pathz.yang
- gnsi/ssh/gnsi-ssh.yang
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
- public/release/models/aft/openconfig-aft.yang
Expand Down
7 changes: 3 additions & 4 deletions gnmi/oc/definedsets/definedsets-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
Package definedsets is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.10.0: (ygot: v0.29.12)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
- gnsi/cert/gnsi-cert.yang
- gnsi/console/gnsi-console.yang
- gnsi/certz/gnsi-certz.yang
- gnsi/credentialz/gnsi-credentialz.yang
- gnsi/pathz/gnsi-pathz.yang
- gnsi/ssh/gnsi-ssh.yang
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
- public/release/models/aft/openconfig-aft.yang
Expand Down
69 changes: 32 additions & 37 deletions gnmi/oc/enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ of structs which represent a YANG schema. The generated schema can be
compressed by a series of transformations (compression was true
in this case).

This package was generated by ygnmi version: v0.10.0: (ygot: v0.29.12)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
- gnsi/cert/gnsi-cert.yang
- gnsi/console/gnsi-console.yang
- gnsi/certz/gnsi-certz.yang
- gnsi/credentialz/gnsi-credentialz.yang
- gnsi/pathz/gnsi-pathz.yang
- gnsi/ssh/gnsi-ssh.yang
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
- public/release/models/aft/openconfig-aft.yang
Expand Down Expand Up @@ -2383,39 +2382,6 @@ const (
Global_SummaryRouteCostMode_RFC2328_COMPATIBLE E_Global_SummaryRouteCostMode = 2
)

// E_GnsiCert_GrpcCredentialEntityKind is a derived int64 type which is used to represent
// the enumerated node GnsiCert_GrpcCredentialEntityKind. An additional value named
// GnsiCert_GrpcCredentialEntityKind_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_GnsiCert_GrpcCredentialEntityKind int64

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

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

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

const (
// GnsiCert_GrpcCredentialEntityKind_UNSET corresponds to the value UNSET of GnsiCert_GrpcCredentialEntityKind
GnsiCert_GrpcCredentialEntityKind_UNSET E_GnsiCert_GrpcCredentialEntityKind = 0
// GnsiCert_GrpcCredentialEntityKind_ca_trust_bundle corresponds to the value ca_trust_bundle of GnsiCert_GrpcCredentialEntityKind
GnsiCert_GrpcCredentialEntityKind_ca_trust_bundle E_GnsiCert_GrpcCredentialEntityKind = 1
// GnsiCert_GrpcCredentialEntityKind_certificate corresponds to the value certificate of GnsiCert_GrpcCredentialEntityKind
GnsiCert_GrpcCredentialEntityKind_certificate E_GnsiCert_GrpcCredentialEntityKind = 2
// GnsiCert_GrpcCredentialEntityKind_certificate_revocation_list_bundle corresponds to the value certificate_revocation_list_bundle of GnsiCert_GrpcCredentialEntityKind
GnsiCert_GrpcCredentialEntityKind_certificate_revocation_list_bundle E_GnsiCert_GrpcCredentialEntityKind = 3
)

// E_GracefulRestart_Mode is a derived int64 type which is used to represent
// the enumerated node GracefulRestart_Mode. An additional value named
// GracefulRestart_Mode_UNSET is added to the enumeration which is used as
Expand Down Expand Up @@ -8076,6 +8042,35 @@ const (
PolicyTypes_INSTALL_PROTOCOL_TYPE_STATIC E_PolicyTypes_INSTALL_PROTOCOL_TYPE = 12
)

// E_Policy_Instance is a derived int64 type which is used to represent
// the enumerated node Policy_Instance. An additional value named
// Policy_Instance_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_Policy_Instance int64

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

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

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

const (
// Policy_Instance_UNSET corresponds to the value UNSET of Policy_Instance
Policy_Instance_UNSET E_Policy_Instance = 0
// Policy_Instance_ACTIVE corresponds to the value ACTIVE of Policy_Instance
Policy_Instance_ACTIVE E_Policy_Instance = 2
// Policy_Instance_SANDBOX corresponds to the value SANDBOX of Policy_Instance
Policy_Instance_SANDBOX E_Policy_Instance = 3
)

// E_Policy_Type is a derived int64 type which is used to represent
// the enumerated node Policy_Type. An additional value named
// Policy_Type_UNSET is added to the enumeration which is used as
Expand Down
20 changes: 9 additions & 11 deletions gnmi/oc/enum_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@ of structs which represent a YANG schema. The generated schema can be
compressed by a series of transformations (compression was true
in this case).
This package was generated by ygnmi version: v0.10.0: (ygot: v0.29.12)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
- gnsi/cert/gnsi-cert.yang
- gnsi/console/gnsi-console.yang
- gnsi/certz/gnsi-certz.yang
- gnsi/credentialz/gnsi-credentialz.yang
- gnsi/pathz/gnsi-pathz.yang
- gnsi/ssh/gnsi-ssh.yang
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
- public/release/models/aft/openconfig-aft.yang
Expand Down Expand Up @@ -516,11 +515,6 @@ var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
1: {Name: "RFC1583_COMPATIBLE"},
2: {Name: "RFC2328_COMPATIBLE"},
},
"E_GnsiCert_GrpcCredentialEntityKind": {
1: {Name: "ca-trust-bundle", DefiningModule: "gnsi-cert"},
2: {Name: "certificate", DefiningModule: "gnsi-cert"},
3: {Name: "certificate-revocation-list-bundle", DefiningModule: "gnsi-cert"},
},
"E_GracefulRestart_Mode": {
1: {Name: "HELPER_ONLY"},
2: {Name: "BILATERAL"},
Expand Down Expand Up @@ -1836,6 +1830,10 @@ var ΛEnum = map[string]map[int64]ygot.EnumDefinition{
11: {Name: "PIM", DefiningModule: "openconfig-policy-types"},
12: {Name: "STATIC", DefiningModule: "openconfig-policy-types"},
},
"E_Policy_Instance": {
2: {Name: "ACTIVE"},
3: {Name: "SANDBOX"},
},
"E_Policy_Type": {
1: {Name: "PBR_POLICY"},
2: {Name: "VRF_SELECTION_POLICY"},
Expand Down Expand Up @@ -4826,8 +4824,8 @@ func initΛEnumTypes() {
"/system/cpus/cpu/state/index": {
reflect.TypeOf((E_Cpu_Index)(0)),
},
"/system/grpc-credentials/entities/entity/state/kind": {
reflect.TypeOf((E_GnsiCert_GrpcCredentialEntityKind)(0)),
"/system/gnmi-pathz-policies/policies/policy/state/instance": {
reflect.TypeOf((E_Policy_Instance)(0)),
},
"/system/grpc-servers/grpc-server/config/listen-addresses": {
reflect.TypeOf((E_GrpcServer_ListenAddresses)(0)),
Expand Down
7 changes: 3 additions & 4 deletions gnmi/oc/gnmicollectormetadata/gnmicollectormetadata-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
Package gnmicollectormetadata is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.10.0: (ygot: v0.29.12)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
- gnsi/cert/gnsi-cert.yang
- gnsi/console/gnsi-console.yang
- gnsi/certz/gnsi-certz.yang
- gnsi/credentialz/gnsi-credentialz.yang
- gnsi/pathz/gnsi-pathz.yang
- gnsi/ssh/gnsi-ssh.yang
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
- public/release/models/aft/openconfig-aft.yang
Expand Down
7 changes: 3 additions & 4 deletions gnmi/oc/interfaces/interfaces-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
Package interfaces is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.

This package was generated by ygnmi version: v0.10.0: (ygot: v0.29.12)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
- gnsi/cert/gnsi-cert.yang
- gnsi/console/gnsi-console.yang
- gnsi/certz/gnsi-certz.yang
- gnsi/credentialz/gnsi-credentialz.yang
- gnsi/pathz/gnsi-pathz.yang
- gnsi/ssh/gnsi-ssh.yang
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
- public/release/models/aft/openconfig-aft.yang
Expand Down
7 changes: 3 additions & 4 deletions gnmi/oc/keychain/keychain-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
Package keychain is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.10.0: (ygot: v0.29.12)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
- gnsi/cert/gnsi-cert.yang
- gnsi/console/gnsi-console.yang
- gnsi/certz/gnsi-certz.yang
- gnsi/credentialz/gnsi-credentialz.yang
- gnsi/pathz/gnsi-pathz.yang
- gnsi/ssh/gnsi-ssh.yang
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
- public/release/models/aft/openconfig-aft.yang
Expand Down
7 changes: 3 additions & 4 deletions gnmi/oc/lacp/lacp-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
Package lacp is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.10.0: (ygot: v0.29.12)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
- gnsi/cert/gnsi-cert.yang
- gnsi/console/gnsi-console.yang
- gnsi/certz/gnsi-certz.yang
- gnsi/credentialz/gnsi-credentialz.yang
- gnsi/pathz/gnsi-pathz.yang
- gnsi/ssh/gnsi-ssh.yang
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
- public/release/models/aft/openconfig-aft.yang
Expand Down
7 changes: 3 additions & 4 deletions gnmi/oc/lldp/lldp-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
Package lldp is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.10.0: (ygot: v0.29.12)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
- gnsi/cert/gnsi-cert.yang
- gnsi/console/gnsi-console.yang
- gnsi/certz/gnsi-certz.yang
- gnsi/credentialz/gnsi-credentialz.yang
- gnsi/pathz/gnsi-pathz.yang
- gnsi/ssh/gnsi-ssh.yang
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
- public/release/models/aft/openconfig-aft.yang
Expand Down
7 changes: 3 additions & 4 deletions gnmi/oc/netinstbgp/netinstbgp-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
Package netinstbgp is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.

This package was generated by ygnmi version: v0.10.0: (ygot: v0.29.12)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
- gnsi/cert/gnsi-cert.yang
- gnsi/console/gnsi-console.yang
- gnsi/certz/gnsi-certz.yang
- gnsi/credentialz/gnsi-credentialz.yang
- gnsi/pathz/gnsi-pathz.yang
- gnsi/ssh/gnsi-ssh.yang
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
- public/release/models/aft/openconfig-aft.yang
Expand Down
7 changes: 3 additions & 4 deletions gnmi/oc/netinstisis/netinstisis-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
Package netinstisis is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.

This package was generated by ygnmi version: v0.10.0: (ygot: v0.29.12)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
- gnsi/cert/gnsi-cert.yang
- gnsi/console/gnsi-console.yang
- gnsi/certz/gnsi-certz.yang
- gnsi/credentialz/gnsi-credentialz.yang
- gnsi/pathz/gnsi-pathz.yang
- gnsi/ssh/gnsi-ssh.yang
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
- public/release/models/aft/openconfig-aft.yang
Expand Down
7 changes: 3 additions & 4 deletions gnmi/oc/networkinstance/networkinstance-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
Package networkinstance is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.

This package was generated by ygnmi version: v0.10.0: (ygot: v0.29.12)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
- gnsi/cert/gnsi-cert.yang
- gnsi/console/gnsi-console.yang
- gnsi/certz/gnsi-certz.yang
- gnsi/credentialz/gnsi-credentialz.yang
- gnsi/pathz/gnsi-pathz.yang
- gnsi/ssh/gnsi-ssh.yang
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
- public/release/models/aft/openconfig-aft.yang
Expand Down
7 changes: 3 additions & 4 deletions gnmi/oc/ocpath/ocpath.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,13 @@
Package ocpath is a generated package which contains definitions
of structs which generate gNMI paths for a YANG schema.
This package was generated by ygnmi version: v0.10.0: (ygot: v0.29.12)
This package was generated by ygnmi version: v0.11.1: (ygot: v0.29.18)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
- gnsi/cert/gnsi-cert.yang
- gnsi/console/gnsi-console.yang
- gnsi/certz/gnsi-certz.yang
- gnsi/credentialz/gnsi-credentialz.yang
- gnsi/pathz/gnsi-pathz.yang
- gnsi/ssh/gnsi-ssh.yang
- public/release/models/acl/openconfig-acl.yang
- public/release/models/acl/openconfig-packet-match.yang
- public/release/models/aft/openconfig-aft.yang
Expand Down
Loading

0 comments on commit 3ef550c

Please sign in to comment.