Directories ¶
Path | Synopsis |
---|---|
demo
|
|
bgp
Binary ocbgpdemo provides a demonstration application which uses the OpenConfig structs library to create a data instance of the BGP model, and output it as JSON.
|
Binary ocbgpdemo provides a demonstration application which uses the OpenConfig structs library to create a data instance of the BGP model, and output it as JSON. |
device
Binary devicedemo provides a demonstration application which uses the OpenConfig structs library to create a data instance of an entire device, and output it as JSON.
|
Binary devicedemo provides a demonstration application which uses the OpenConfig structs library to create a data instance of an entire device, and output it as JSON. |
getting_started
Binary interfaces is a getting started example for the ygot library.
|
Binary interfaces is a getting started example for the ygot library. |
getting_started/pkg/ocdemo
Package ocdemo is a demonstration package for use in the getting_started ygot demo.
|
Package ocdemo is a demonstration package for use in the getting_started ygot demo. |
gnmi_telemetry
Binary gnmi_telemetry provides an example application demonstrating the use of the ygot package to create gNMI telemetry notifications for use in the Subscribe RPC from a populated set of structs generated by ygen.
|
Binary gnmi_telemetry provides an example application demonstrating the use of the ygot package to create gNMI telemetry notifications for use in the Subscribe RPC from a populated set of structs generated by ygen. |
optical
Binary devicedemo provides a demonstration application which uses the OpenConfig structs library to create a data instance of an entire device, and output it as JSON.
|
Binary devicedemo provides a demonstration application which uses the OpenConfig structs library to create a data instance of an entire device, and output it as JSON. |
protobuf_getting_started
Package main contains a demo of using a protobuf schema generated by ygot to generate a Protobuf form of the OpenConfig RIB model.
|
Package main contains a demo of using a protobuf schema generated by ygot to generate a Protobuf form of the OpenConfig RIB model. |
protobuf_getting_started/ribproto/openconfig/openconfig_rib_bgp
Package openconfig_rib_bgp is a protobuf package that is generated by ygot.
|
Package openconfig_rib_bgp is a protobuf package that is generated by ygot. |
uncompressed
Binary uncompressed is an example package showing the usage of ygot for an uncompressed schema.
|
Binary uncompressed is an example package showing the usage of ygot for an uncompressed schema. |
uncompressed/pkg/demo
Package demo is an example package demonstrating the use of the uncompressed structs produced by ygot.
|
Package demo is an example package demonstrating the use of the uncompressed structs produced by ygot. |
Package exampleoc is a generated package which contains definitions of structs which represent a YANG schema.
|
Package exampleoc is a generated package which contains definitions of structs which represent a YANG schema. |
opstateoc
Package opstateoc is a generated package which contains definitions of structs which represent a YANG schema.
|
Package opstateoc is a generated package which contains definitions of structs which represent a YANG schema. |
wrapperunionoc
Package wrapperunionoc is a generated package which contains definitions of structs which represent a YANG schema.
|
Package wrapperunionoc is a generated package which contains definitions of structs which represent a YANG schema. |
Binary generator generates Go code corresponding to an input YANG schema.
|
Binary generator generates Go code corresponding to an input YANG schema. |
Package genutil provides utility functions for package that generate code based on a YANG schema.
|
Package genutil provides utility functions for package that generate code based on a YANG schema. |
cmd
Package cmd contains a CLI utility to access gnmidiff functionality.
|
Package cmd contains a CLI utility to access gnmidiff functionality. |
gnmiparse
gnmiparse contains utilities for parsing the textproto of gNMI messages.
|
gnmiparse contains utilities for parsing the textproto of gNMI messages. |
Package gogen is a library for generating Go structs from a YANG schema.
|
Package gogen is a library for generating Go structs from a YANG schema. |
internal/gotypes
Package gotypes is a playground package for demonstrating types that are used in the generated Go code.
|
Package gotypes is a playground package for demonstrating types that are used in the generated Go code. |
integration_tests
|
|
annotations
Package annotations provides integration tests for annotation that are used in ygot structs.
|
Package annotations provides integration tests for annotation that are used in ygot structs. |
annotations/apb
Package apb is an example annotation protobuf.
|
Package apb is an example annotation protobuf. |
annotations/proto2apb
Package apb is an example annotation protobuf.
|
Package apb is an example annotation protobuf. |
schemaops/ctestschema
Package ctestschema is a generated package which contains definitions of structs which represent a YANG schema.
|
Package ctestschema is a generated package which contains definitions of structs which represent a YANG schema. |
schemaops/utestschema
Package utestschema is a generated package which contains definitions of structs which represent a YANG schema.
|
Package utestschema is a generated package which contains definitions of structs which represent a YANG schema. |
uncompressed
Package uncompressed is an integration test for ygot that tests features of uncompressed schemas using real YANG schemas.
|
Package uncompressed is an integration test for ygot that tests features of uncompressed schemas using real YANG schemas. |
uncompressed/cschema
Package cschema is a compressed schema generated based on the yang/uncompressed.yang schema.
|
Package cschema is a compressed schema generated based on the yang/uncompressed.yang schema. |
uncompressed/uschema
Package uschema is a compressed schema generated based on the yang/uncompressed.yang schema.
|
Package uschema is a compressed schema generated based on the yang/uncompressed.yang schema. |
internal
|
|
igenutil
Package igenutil contains internal generation utilities.
|
Package igenutil contains internal generation utilities. |
proto
|
|
yext
package yext contains generated code for the yext protobuf.
|
package yext contains generated code for the yext protobuf. |
ywrapper
package ywrapper contains generated code for the ywrapper protobuf.
|
package ywrapper contains generated code for the ywrapper protobuf. |
Binary proto_generator generates Protobuf3 code corresponding to an input YANG schema.
|
Binary proto_generator generates Protobuf3 code corresponding to an input YANG schema. |
Package protogen contains code for generating proto code given YANG input.
|
Package protogen contains code for generating proto code given YANG input. |
Package protomap provides utilities that map ygen-generated protobuf messages to and from other types (e.g., gNMI Notification messages, or ygen-generated GoStructs).
|
Package protomap provides utilities that map ygen-generated protobuf messages to and from other types (e.g., gNMI Notification messages, or ygen-generated GoStructs). |
integration_tests
Package integration_tests performs tests against real-world schemas for protomap.
|
Package integration_tests performs tests against real-world schemas for protomap. |
Package testcmp contains a functions that can be used alongside the Go cmp or ygot testutil packages to provide comparisons between particular gNMI or ygot data structures with more intelligence than the base cmp or proto.Equal functions.
|
Package testcmp contains a functions that can be used alongside the Go cmp or ygot testutil packages to provide comparisons between particular gNMI or ygot data structures with more intelligence than the base cmp or proto.Equal functions. |
Package testutil contains a set of utilities that are useful within tests of ygot-related data.
|
Package testutil contains a set of utilities that are useful within tests of ygot-related data. |
Package uexampleoc is a generated package which contains definitions of structs which represent a YANG schema.
|
Package uexampleoc is a generated package which contains definitions of structs which represent a YANG schema. |
Package util implements utlity functions not specific to any ygot package.
|
Package util implements utlity functions not specific to any ygot package. |
Package ygen contains a library and base configuration options that can be extended to generate language-specific structs from a YANG model.
|
Package ygen contains a library and base configuration options that can be extended to generate language-specific structs from a YANG model. |
schema_tests
Package schematest is used for testing with the default OpenConfig generated structs.
|
Package schematest is used for testing with the default OpenConfig generated structs. |
Package ygot contains helper methods for dealing with structs that represent a YANG schema.
|
Package ygot contains helper methods for dealing with structs that represent a YANG schema. |
pathtranslate
Package pathtranslate exports api to transform given string slice into different forms in a schema aware manner.
|
Package pathtranslate exports api to transform given string slice into different forms in a schema aware manner. |
schema_tests
Package schematest is used for testing with the default OpenConfig generated structs.
|
Package schematest is used for testing with the default OpenConfig generated structs. |
Package ypathgen contains a library to generate gNMI paths from a YANG model.
|
Package ypathgen contains a library to generate gNMI paths from a YANG model. |
path_tests
Package pathtest tests the path generation library (ypathgen) using a real OpenConfig YANG schema.
|
Package pathtest tests the path generation library (ypathgen) using a real OpenConfig YANG schema. |
Package ytypes implements YANG type validation logic.
|
Package ytypes implements YANG type validation logic. |
schema_tests
Package validate is used for testing with the default OpenConfig generated structs.
|
Package validate is used for testing with the default OpenConfig generated structs. |
Click to show internal directories.
Click to hide internal directories.