Skip to content

anydata error when trying to generate from openconfig-config.yang #1027

Description

@preetjuniper

Hi,

Does ygot have support for generating go code from yang that uses anydata? I encountered an error using the generator with a yang file that has an anydata leaf in it. Poking around the ygot repo, I see there's a testdata/module/openconfig-complex.yang file referenced in some tests. When trying the generator with this file, I get the following:

>> generator -path=testdata/modules -output_file=openconfig_complex.go -package_name=occomplex -generate_fakeroot -fakeroot_name=root -shorten_enum_leaf_names -trim_enum_openconfig_prefix -typedef_enum_with_defmod -generate_simple_unions openconfig-complex.yang
F0403 10:05:16.677285   24213 generator.go:384] ERROR Generating GoStruct Code: unknown entity type for mapping to Go: /openconfig-complex/model/anydata-leaf, Kind: anydata

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions