"os"
"strings"
- "git.fd.io/govpp.git"
- "git.fd.io/govpp.git/adapter/socketclient"
- "git.fd.io/govpp.git/adapter/statsclient"
- "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"
+ "go.fd.io/govpp"
+ "go.fd.io/govpp/adapter/socketclient"
+ "go.fd.io/govpp/adapter/statsclient"
+ "go.fd.io/govpp/api"
+ interfaces "go.fd.io/govpp/binapi/interface"
+ "go.fd.io/govpp/binapi/interface_types"
+ "go.fd.io/govpp/binapi/ip"
+ "go.fd.io/govpp/binapi/ip_types"
+ "go.fd.io/govpp/binapi/vpe"
+ "go.fd.io/govpp/core"
)
var (
statsSockAddrVpp2 = flag.String("stats-sock-2", statsclient.DefaultSocketName, "Path to stats socket file of the VPP2")
)
-var Errors []error
+var errors []error
func main() {
flag.Parse()
fmt.Println("Starting multi-vpp example")
defer func() {
- if len(Errors) > 0 {
- logInfo("Finished with %d errors\n", len(Errors))
+ if len(errors) > 0 {
+ logInfo("Finished with %d errors\n", len(errors))
os.Exit(1)
} else {
logInfo("Finished successfully\n")
// logError prints error message
func logError(err error, msg string) {
fmt.Printf("[ERROR]: %s: %v\n", msg, err)
- Errors = append(Errors, err)
+ errors = append(errors, err)
}