- Get the latest go vpp code and install binapi-genrator
- Execute the following command
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
goroutine 1 [running]:
main.translateVppType(0xc4200a08c0, 0xc420199580, 0x17, 0x51eb00, 0x1, 0xc420291710)
/home/akshay/cnwlcwork/cnwlc45/src/git.fd.io/govpp.git/cmd/binapi-generator/generator.go:543 +0x569
main.processMessageField(0xc4200a08c0, 0xc4200b7be0, 0xc4201fe828, 0x1, 0xc4201fe828, 0x0)
/home/akshay/cnwlcwork/cnwlc45/src/git.fd.io/govpp.git/cmd/binapi-generator/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-generator/generator.go:287 +0x441
main.generatePackage(0xc4200a08c0, 0xc420058340, 0xc4204bcaa0, 0xc42012c000, 0x1000)
/home/akshay/cnwlcwork/cnwlc45/src/git.fd.io/govpp.git/cmd/binapi-generator/generator.go:220 +0x26a
main.generateFromFile(0xc420017c00, 0x32, 0x7fff3a8206d2, 0x2, 0x0, 0x0)
/home/akshay/cnwlcwork/cnwlc45/src/git.fd.io/govpp.git/cmd/binapi-generator/generator.go:151 +0x4a4
main.main()
/home/akshay/cnwlcwork/cnwlc45/src/git.fd.io/govpp.git/cmd/binapi-generator/generator.go:91 +0x1e2