Hey,

You are most likely not running the latest GoVPP (I can see ”generator.go" file 
in your panic output which does not exist in latest version).
The support for enums/unions along with some larger refactor of GoVPP was 
recently (4 days ago) merged into master. 

Here's change on gerrit: https://gerrit.fd.io/r/#/c/14254/
Here's commit on GitHub: 
https://github.com/FDio/govpp/commit/a3bb834db727a3ac9a1ffcfeae9265e5dead851f

We are already using this in 
https://github.com/ligato/vpp-agent/tree/pantheon-dev

Please update your GoVPP and try again.

Regards,
Ondrej


-----Original Message-----
From: vpp-dev@lists.fd.io <vpp-dev@lists.fd.io> On Behalf Of Ole Troan
Sent: Tuesday, 2018-August-21 12:32
To: akj...@outlook.com
Cc: vpp-dev@lists.fd.io
Subject: Re: [vpp-dev] GoVPP is incompatible with vpp 18.07 #vpp #govpp #binapi

> I am trying to generate binary API's using latest GoVPP with 18.07 VPP 
> JSON. I get the following error
> 
> binapi-generator --input-dir=/home/akshay/vpp1807json/vpp/api/core/ 
> --output-dir=./
>       • We get the following error
>            
> panic: Unknown VPP type vl_api_address_family_t

I guess it breaks with

VPPAPIGEN: Add union and enum support and IP4/IP6 address type.
2c2feab7d89239c92df4622c96e853230393deb9

Which adds a support for address types and uses the relatively new union and 
enum support in the API compiler.

Guess this could be an argument for having the Go language binding inside of 
the repository...

Best regards,
Ole

>  
> goroutine 1 [running]:
> main.translateVppType(0xc4200a08c0, 0xc420199580, 0x17, 0x51eb00, 0x1,
> 0xc420291710)
>         
> /home/akshay/cnwlcwork/cnwlc45/src/git.fd.io/govpp.git/cmd/binapi-gene
> rator/generator.go:543 +0x569 main.processMessageField(0xc4200a08c0,
> 0xc4200b7be0, 0xc4201fe828, 0x1, 0xc4201fe828, 0x0)
>         
> /home/akshay/cnwlcwork/cnwlc45/src/git.fd.io/govpp.git/cmd/binapi-gene
> rator/generator.go:376 +0x4d6 main.generateMessage(0xc4200a08c0,
> 0x5ac260, 0xc420058340, 0xc4200a7290, 0xc4200a7201, 0x0, 0x0)
>         
> /home/akshay/cnwlcwork/cnwlc45/src/git.fd.io/govpp.git/cmd/binapi-gene
> rator/generator.go:287 +0x441 main.generatePackage(0xc4200a08c0,
> 0xc420058340, 0xc4204bcaa0, 0xc42012c000, 0x1000)
>         
> /home/akshay/cnwlcwork/cnwlc45/src/git.fd.io/govpp.git/cmd/binapi-gene
> rator/generator.go:220 +0x26a main.generateFromFile(0xc420017c00,
> 0x32, 0x7fff3a8206d2, 0x2, 0x0, 0x0)
>         
> /home/akshay/cnwlcwork/cnwlc45/src/git.fd.io/govpp.git/cmd/binapi-gene
> rator/generator.go:151 +0x4a4
> main.main()
>         
> /home/akshay/cnwlcwork/cnwlc45/src/git.fd.io/govpp.git/cmd/binapi-gene
> rator/generator.go:91 +0x1e2
> 
> Thanks in advance,
> Akshay
> -=-=-=-=-=-=-=-=-=-=-=-
> Links: You receive all messages sent to this group.
> 
> View/Reply Online (#10226): 
> https://lists.fd.io/g/vpp-dev/message/10226
> Mute This Topic: https://lists.fd.io/mt/24873049/675193
> Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=1480722
> Mute #govpp: https://lists.fd.io/mk?hashtag=govpp&subid=1480722
> Mute #binapi: https://lists.fd.io/mk?hashtag=binapi&subid=1480722
> Group Owner: vpp-dev+ow...@lists.fd.io
> Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub
> [otr...@employees.org]
> -=-=-=-=-=-=-=-=-=-=-=-

-=-=-=-=-=-=-=-=-=-=-=-
Links: You receive all messages sent to this group.

View/Reply Online (#10232): https://lists.fd.io/g/vpp-dev/message/10232
Mute This Topic: https://lists.fd.io/mt/24873049/21656
Mute #vpp: https://lists.fd.io/mk?hashtag=vpp&subid=1480452
Mute #govpp: https://lists.fd.io/mk?hashtag=govpp&subid=1480452
Mute #binapi: https://lists.fd.io/mk?hashtag=binapi&subid=1480452
Group Owner: vpp-dev+ow...@lists.fd.io
Unsubscribe: https://lists.fd.io/g/vpp-dev/unsub  [arch...@mail-archive.com]
-=-=-=-=-=-=-=-=-=-=-=-
  • ... akjosh
    • ... Ole Troan
      • ... Ondrej Fabry -X (ofabry - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io
        • ... akjosh
          • ... Ondrej Fabry -X (ofabry - PANTHEON TECHNOLOGIES at Cisco) via Lists.Fd.Io
      • ... via Lists.Fd.Io

Reply via email to