Skip to content

Commit

Permalink
update README
Browse files Browse the repository at this point in the history
  • Loading branch information
xgfone committed Jun 11, 2021
1 parent bbd005a commit bed639d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
Expand All @@ -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) {
Expand Down

0 comments on commit bed639d

Please sign in to comment.