Hi All,

I have a quick question.

I have a .yang file with this definition:

    leaf DummyEnumExample {
mandatory false;
type enumeration {
enum zero;
enum one {
value 1;
}
enum seven {
value 7;
}
}
    }

I run the command:

$ goyang --format proto ../yang/entry.yang > entry.proto

It generates a nagging line:

  DummyEnumExample DummyEnumExample = 2;

So, when I run

$ protoc -I=. --go_out=. ./entry.proto

I get this error:

entry.proto:13:8: "DummyEnumExample" is already defined in
"BookSale.BookSaleRecord".
entry.proto:18:3: "DummyEnumExample" is not defined.

Is this a limitation of goyang or am I missing something?

Thanks
dharani

-- 
You received this message because you are subscribed to the Google Groups 
"golang-nuts" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to golang-nuts+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to