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-destination12714771334669886056/.
  • Loading branch information
GGN Engprod Team authored and alexmasi committed Aug 16, 2023
1 parent 6b08439 commit 15707fe
Show file tree
Hide file tree
Showing 41 changed files with 392,761 additions and 392,899 deletions.
1 change: 1 addition & 0 deletions gnmi/generate.sh
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ go run github.com/openconfig/ygnmi/app/ygnmi generator \
--base_package_path=github.com/openconfig/ondatra/gnmi/oc \
--output_dir=gnmi/oc \
--paths=public/release/models/...,public/third_party/ietf/... \
--split_package_paths="/network-instances/network-instance/protocols/protocol/isis=netinstisis,/network-instances/network-instance/protocols/protocol/bgp=netinstbgp" \
--ignore_deviate_notsupported \
"${YANG_FILES[@]}"

Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/acl/acl-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
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.8.6: (ygot: v0.29.9)
This package was generated by ygnmi version: v0.8.7: (ygot: v0.29.9)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
Expand Down
68 changes: 1 addition & 67 deletions gnmi/oc/ateflow/ateflow-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
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.8.6: (ygot: v0.29.9)
This package was generated by ygnmi version: v0.8.7: (ygot: v0.29.9)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
Expand Down Expand Up @@ -2712,72 +2712,6 @@ func (n *FlowPathAny) State() ygnmi.WildcardQuery[*oc.Flow] {
)
}

// Batch contains a collection of paths.
// Use batch to call Lookup, Watch, etc. on multiple paths at once.
type Batch struct {
paths []ygnmi.PathStruct
}

// AddPaths adds the paths to the batch.
func (b *Batch) AddPaths(paths ...ygnmi.PathStruct) *Batch {
b.paths = append(b.paths, paths...)
return b
}

// State returns a Query that can be used in gNMI operations.
// The returned query is immutable, adding paths does not modify existing queries.
func (b *Batch) State() ygnmi.SingletonQuery[map[string]*oc.Flow] {
queryPaths := make([]ygnmi.PathStruct, len(b.paths))
copy(queryPaths, b.paths)
return ygnmi.NewSingletonQuery[map[string]*oc.Flow](
"Root",
true,
false,
false,
true,
false,
ygnmi.NewDeviceRootBase(),
nil,
nil,
func() *ytypes.Schema {
return &ytypes.Schema{
Root: &oc.Root{},
SchemaTree: oc.SchemaTree,
Unmarshal: oc.Unmarshal,
}
},
queryPaths,
nil,
)
}

// Config returns a Query that can be used in gNMI operations.
// The returned query is immutable, adding paths does not modify existing queries.
func (b *Batch) Config() ygnmi.SingletonQuery[map[string]*oc.Flow] {
queryPaths := make([]ygnmi.PathStruct, len(b.paths))
copy(queryPaths, b.paths)
return ygnmi.NewSingletonQuery[map[string]*oc.Flow](
"Root",
false,
false,
false,
true,
false,
ygnmi.NewDeviceRootBase(),
nil,
nil,
func() *ytypes.Schema {
return &ytypes.Schema{
Root: &oc.Root{},
SchemaTree: oc.SchemaTree,
Unmarshal: oc.Unmarshal,
}
},
queryPaths,
nil,
)
}

// State returns a Query that can be used in gNMI operations.
func (n *FlowPathMap) State() ygnmi.SingletonQuery[map[string]*oc.Flow] {
return ygnmi.NewSingletonQuery[map[string]*oc.Flow](
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/definedsets/definedsets-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
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.8.6: (ygot: v0.29.9)
This package was generated by ygnmi version: v0.8.7: (ygot: v0.29.9)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/enum.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ 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.8.6: (ygot: v0.29.9)
This package was generated by ygnmi version: v0.8.7: (ygot: v0.29.9)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/enum_map.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ 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.8.6: (ygot: v0.29.9)
This package was generated by ygnmi version: v0.8.7: (ygot: v0.29.9)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/gnmicollectormetadata/gnmicollectormetadata-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
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.8.6: (ygot: v0.29.9)
This package was generated by ygnmi version: v0.8.7: (ygot: v0.29.9)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
Expand Down
68 changes: 1 addition & 67 deletions gnmi/oc/interfaces/interfaces-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
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.8.6: (ygot: v0.29.9)
This package was generated by ygnmi version: v0.8.7: (ygot: v0.29.9)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
Expand Down Expand Up @@ -4089,72 +4089,6 @@ func (n *InterfacePathAny) Config() ygnmi.WildcardQuery[*oc.Interface] {
)
}

// Batch contains a collection of paths.
// Use batch to call Lookup, Watch, etc. on multiple paths at once.
type Batch struct {
paths []ygnmi.PathStruct
}

// AddPaths adds the paths to the batch.
func (b *Batch) AddPaths(paths ...ygnmi.PathStruct) *Batch {
b.paths = append(b.paths, paths...)
return b
}

// State returns a Query that can be used in gNMI operations.
// The returned query is immutable, adding paths does not modify existing queries.
func (b *Batch) State() ygnmi.SingletonQuery[map[string]*oc.Interface] {
queryPaths := make([]ygnmi.PathStruct, len(b.paths))
copy(queryPaths, b.paths)
return ygnmi.NewSingletonQuery[map[string]*oc.Interface](
"Root",
true,
false,
false,
true,
false,
ygnmi.NewDeviceRootBase(),
nil,
nil,
func() *ytypes.Schema {
return &ytypes.Schema{
Root: &oc.Root{},
SchemaTree: oc.SchemaTree,
Unmarshal: oc.Unmarshal,
}
},
queryPaths,
nil,
)
}

// Config returns a Query that can be used in gNMI operations.
// The returned query is immutable, adding paths does not modify existing queries.
func (b *Batch) Config() ygnmi.SingletonQuery[map[string]*oc.Interface] {
queryPaths := make([]ygnmi.PathStruct, len(b.paths))
copy(queryPaths, b.paths)
return ygnmi.NewSingletonQuery[map[string]*oc.Interface](
"Root",
false,
false,
false,
true,
false,
ygnmi.NewDeviceRootBase(),
nil,
nil,
func() *ytypes.Schema {
return &ytypes.Schema{
Root: &oc.Root{},
SchemaTree: oc.SchemaTree,
Unmarshal: oc.Unmarshal,
}
},
queryPaths,
nil,
)
}

// State returns a Query that can be used in gNMI operations.
func (n *InterfacePathMap) State() ygnmi.SingletonQuery[map[string]*oc.Interface] {
return ygnmi.NewSingletonQuery[map[string]*oc.Interface](
Expand Down
68 changes: 1 addition & 67 deletions gnmi/oc/keychain/keychain-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
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.8.6: (ygot: v0.29.9)
This package was generated by ygnmi version: v0.8.7: (ygot: v0.29.9)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
Expand Down Expand Up @@ -715,72 +715,6 @@ func (n *KeychainPathAny) Config() ygnmi.WildcardQuery[*oc.Keychain] {
)
}

// Batch contains a collection of paths.
// Use batch to call Lookup, Watch, etc. on multiple paths at once.
type Batch struct {
paths []ygnmi.PathStruct
}

// AddPaths adds the paths to the batch.
func (b *Batch) AddPaths(paths ...ygnmi.PathStruct) *Batch {
b.paths = append(b.paths, paths...)
return b
}

// State returns a Query that can be used in gNMI operations.
// The returned query is immutable, adding paths does not modify existing queries.
func (b *Batch) State() ygnmi.SingletonQuery[map[string]*oc.Keychain] {
queryPaths := make([]ygnmi.PathStruct, len(b.paths))
copy(queryPaths, b.paths)
return ygnmi.NewSingletonQuery[map[string]*oc.Keychain](
"Root",
true,
false,
false,
true,
false,
ygnmi.NewDeviceRootBase(),
nil,
nil,
func() *ytypes.Schema {
return &ytypes.Schema{
Root: &oc.Root{},
SchemaTree: oc.SchemaTree,
Unmarshal: oc.Unmarshal,
}
},
queryPaths,
nil,
)
}

// Config returns a Query that can be used in gNMI operations.
// The returned query is immutable, adding paths does not modify existing queries.
func (b *Batch) Config() ygnmi.SingletonQuery[map[string]*oc.Keychain] {
queryPaths := make([]ygnmi.PathStruct, len(b.paths))
copy(queryPaths, b.paths)
return ygnmi.NewSingletonQuery[map[string]*oc.Keychain](
"Root",
false,
false,
false,
true,
false,
ygnmi.NewDeviceRootBase(),
nil,
nil,
func() *ytypes.Schema {
return &ytypes.Schema{
Root: &oc.Root{},
SchemaTree: oc.SchemaTree,
Unmarshal: oc.Unmarshal,
}
},
queryPaths,
nil,
)
}

// State returns a Query that can be used in gNMI operations.
func (n *KeychainPathMap) State() ygnmi.SingletonQuery[map[string]*oc.Keychain] {
return ygnmi.NewSingletonQuery[map[string]*oc.Keychain](
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/lacp/lacp-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
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.8.6: (ygot: v0.29.9)
This package was generated by ygnmi version: v0.8.7: (ygot: v0.29.9)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
Expand Down
2 changes: 1 addition & 1 deletion gnmi/oc/lldp/lldp-0.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
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.8.6: (ygot: v0.29.9)
This package was generated by ygnmi version: v0.8.7: (ygot: v0.29.9)
using the following YANG input files:
- gnmi-collector-metadata.yang
- gnsi/authz/gnsi-authz.yang
Expand Down
Loading

0 comments on commit 15707fe

Please sign in to comment.