diff --git a/README.md b/README.md index ec2fa99..eb9730c 100644 --- a/README.md +++ b/README.md @@ -1,13 +1,13 @@ -# OVS +# OVS [![Build Status](https://api.travis-ci.com/xgfone/go-ovs.svg?branch=master)](https://travis-ci.com/github/xgfone/go-ovs) [![GoDoc](https://pkg.go.dev/badge/github.com/xgfone/go-ovs)](https://pkg.go.dev/github.com/xgfone/go-ovs) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg?style=flat-square)](https://raw.githubusercontent.com/xgfone/go-ovs/master/LICENSE) -A simple OVS flow executor. +A simple OVS flow executor supporting `Go1.7+`. ## Install ```shell $ go get -u github.com/xgfone/go-ovs ``` -**Notice:** In order to log the every executed command, you maybe add the log hook for default command executor, `github.com/xgfone/go-tools/v7/execution#DefaultCmd`, such as `execution.DefaultCmd.AppendResultHooks(logHook)`. Or, you can call the convenient function `github.com/xgfone/goapp/exec#SetDefaultCmdLogHook`, such as `exec.SetDefaultCmdLogHook()`, which will add a default log hook. +**Notice:** In order to log the every executed command, you maybe add the log hook for default command executor, `github.com/xgfone/go-exec#DefaultCmd`, such as `exec.DefaultCmd.AppendResultHooks(logHook)`. Or, you can call the convenient function `github.com/xgfone/goapp/exec#SetDefaultCmdLogHook`, such as `exec.SetDefaultCmdLogHook()`, which will add a default log hook. ## Example @@ -27,9 +27,9 @@ func main() { } func initBridge(bridge string) { - exec.MustExecutes("ovs-vsctl", "--may-exist", "add-br", bridge, + exec.MustExecute("ovs-vsctl", "--may-exist", "add-br", bridge, "--", "set-fail-mode", bridge, "secure") - exec.MustExecutes("ip", "link", "set", bridge, "up") + exec.MustExecute("ip", "link", "set", bridge, "up") } func initFlows(bridge string) {