X-Git-Url: https://gerrit.fd.io/r/gitweb?a=blobdiff_plain;f=examples%2Fmulti-vpp%2Fmulti_vpp.go;h=8714c9a17f54975c3f466f077cc7763b267de522;hb=d1f24d37bd447b64e402298bb8eb2479681facf9;hp=244dd0324465ddc99d8eb7b33dc2b8a99deee055;hpb=1548c7e12531e3d055567d761c580a1c7ff0ac40;p=govpp.git diff --git a/examples/multi-vpp/multi_vpp.go b/examples/multi-vpp/multi_vpp.go index 244dd03..8714c9a 100644 --- a/examples/multi-vpp/multi_vpp.go +++ b/examples/multi-vpp/multi_vpp.go @@ -18,17 +18,18 @@ package main import ( "flag" "fmt" + "log" + "os" + "git.fd.io/govpp.git" "git.fd.io/govpp.git/adapter/socketclient" "git.fd.io/govpp.git/api" + interfaces "git.fd.io/govpp.git/binapi/interface" + "git.fd.io/govpp.git/binapi/interface_types" + "git.fd.io/govpp.git/binapi/ip" + "git.fd.io/govpp.git/binapi/ip_types" + "git.fd.io/govpp.git/binapi/vpe" "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/ip_types" - "git.fd.io/govpp.git/examples/binapi/vpe" - "log" - "os" ) var ( @@ -175,7 +176,6 @@ func addIPToInterface(ch api.Channel, index interface_types.InterfaceIndex, ip s return } - req := &interfaces.SwInterfaceAddDelAddress{ SwIfIndex: index, IsAdd: true, @@ -212,7 +212,7 @@ func retrieveIPAddresses(ch api.Channel, index interface_types.InterfaceIndex) { break } prefix := ip_types.Prefix(msg.Prefix) - fmt.Printf(" - ip address: %+v\n", prefix.ToString()) + fmt.Printf(" - ip address: %v\n", prefix) } fmt.Println("OK")