diff options
author | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2016-11-16 21:45:27 -0500 |
---|---|---|
committer | Wataru Ishida <ishida.wataru@lab.ntt.co.jp> | 2016-11-17 23:22:55 -0500 |
commit | 93d1dca70aa0ae3b34050d24ad7462b8757213bf (patch) | |
tree | 29c369dfb6d2180e62bf51a5819eff8644bbc81a /tools/config/example_toml.go | |
parent | 24e397b0f65b1c5294ea711a953501fda944411d (diff) |
config: simplify route-disposition configuration
before:
```yaml
actions:
route-disposition:
accept-route: true
reject-route: false
```
after
```yaml
action:
router-disposition: accept-route
```
Signed-off-by: Wataru Ishida <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'tools/config/example_toml.go')
-rw-r--r-- | tools/config/example_toml.go | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/tools/config/example_toml.go b/tools/config/example_toml.go index 11ab2939..62e6b8f6 100644 --- a/tools/config/example_toml.go +++ b/tools/config/example_toml.go @@ -156,10 +156,7 @@ func policy() config.RoutingPolicy { }, }, Actions: config.Actions{ - RouteDisposition: config.RouteDisposition{ - AcceptRoute: false, - RejectRoute: true, - }, + RouteDisposition: "reject-route", BgpActions: config.BgpActions{ SetCommunity: config.SetCommunity{ SetCommunityMethod: config.SetCommunityMethod{ |