Code Review
/
govpp.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
Fix codec fallback and generate type imports
[govpp.git]
/
examples
/
simple-client
/
simple_client.go
diff --git
a/examples/simple-client/simple_client.go
b/examples/simple-client/simple_client.go
index
0017eac
..
096c222
100644
(file)
--- a/
examples/simple-client/simple_client.go
+++ b/
examples/simple-client/simple_client.go
@@
-27,8
+27,10
@@
import (
"git.fd.io/govpp.git/adapter/socketclient"
"git.fd.io/govpp.git/api"
"git.fd.io/govpp.git/core"
"git.fd.io/govpp.git/adapter/socketclient"
"git.fd.io/govpp.git/api"
"git.fd.io/govpp.git/core"
+ "git.fd.io/govpp.git/examples/binapi/interface_types"
"git.fd.io/govpp.git/examples/binapi/interfaces"
"git.fd.io/govpp.git/examples/binapi/ip"
"git.fd.io/govpp.git/examples/binapi/interfaces"
"git.fd.io/govpp.git/examples/binapi/ip"
+ "git.fd.io/govpp.git/examples/binapi/ip_types"
"git.fd.io/govpp.git/examples/binapi/vpe"
)
"git.fd.io/govpp.git/examples/binapi/vpe"
)
@@
-166,8
+168,8
@@
func addIPAddress(ch api.Channel, index interfaces.InterfaceIndex) {
IsAdd: true,
Prefix: interfaces.AddressWithPrefix{
Address: interfaces.Address{
IsAdd: true,
Prefix: interfaces.AddressWithPrefix{
Address: interfaces.Address{
- Af: i
nterfac
es.ADDRESS_IP4,
- Un: i
nterfac
es.AddressUnionIP4(interfaces.IP4Address{10, 10, 0, uint8(index)}),
+ Af: i
p_typ
es.ADDRESS_IP4,
+ Un: i
p_typ
es.AddressUnionIP4(interfaces.IP4Address{10, 10, 0, uint8(index)}),
},
Len: 32,
},
},
Len: 32,
},
@@
-244,7
+246,7
@@
func interfaceNotifications(ch api.Channel, index interfaces.InterfaceIndex) {
// generate some events in VPP
err = ch.SendRequest(&interfaces.SwInterfaceSetFlags{
SwIfIndex: index,
// generate some events in VPP
err = ch.SendRequest(&interfaces.SwInterfaceSetFlags{
SwIfIndex: index,
- Flags: interfaces.IF_STATUS_API_FLAG_ADMIN_UP,
+ Flags: interface
_type
s.IF_STATUS_API_FLAG_ADMIN_UP,
}).ReceiveReply(&interfaces.SwInterfaceSetFlagsReply{})
if err != nil {
logError(err, "setting interface flags")
}).ReceiveReply(&interfaces.SwInterfaceSetFlagsReply{})
if err != nil {
logError(err, "setting interface flags")