openconfig / ygot

A YANG-centric Go toolkit - Go/Protobuf Code Generation; Validation; Marshaling/Unmarshaling
Apache License 2.0
286 stars 107 forks source link

ygot generates error for IETF Alarams yang model #470

Closed adibrastegarnia closed 4 years ago

adibrastegarnia commented 4 years ago

I was trying to use ygot to generate the model for ietf-alarms@2019-09-11 but I am getting the following error

F1116 14:20:32.825026 98802 generator.go:333] ERROR Generating GoStruct Code: unknown type of entry Directory in findMappableEntities for /ietf-alarms, unknown type of entry Directory in findMappableEntities for /ietf-alarms, unknown type of entry Directory in findMappableEntities for /ietf-alarms/alarms/alarm-list/alarm exit status 1 ygot failed Any ideas?

wenovus commented 4 years ago

Hi Adib, There is probably an unsupported child node under /ietf-alarms/alarms/alarm-list/alarm -- I'm not aware of ygot's support of any of notification and action nodes.

The error message is unclear, I will open a PR to fix it.

adibrastegarnia commented 4 years ago

Hi Adib, There is probably an unsupported child node under /ietf-alarms/alarms/alarm-list/alarm -- I'm not aware of ygot's support of any of notification and action nodes.

The error message is unclear, I will open a PR to fix it. @wenovus That would be great. thanks