diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-21 08:48:24 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-21 08:57:21 +0000 |
commit | a34d8d2651877998fe01d35350259c979a49d295 (patch) | |
tree | 220802d9c7b596c8636a80d116b9b9a38518c825 /tools/config/example_toml.go | |
parent | c6ddfb1d8ecc5944a775a458fbce648713ae3b02 (diff) |
config: simplify config structures
stop generating self-contained leafref fields in openconfig model.
(e.g. bgp:neighbor/bgp:neighbor-address )
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'tools/config/example_toml.go')
-rw-r--r-- | tools/config/example_toml.go | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/tools/config/example_toml.go b/tools/config/example_toml.go index 01999f21..11ab2939 100644 --- a/tools/config/example_toml.go +++ b/tools/config/example_toml.go @@ -23,8 +23,16 @@ func main() { NeighborAddress: "192.168.177.33", }, AfiSafis: []config.AfiSafi{ - config.AfiSafi{AfiSafiName: "ipv4-unicast"}, - config.AfiSafi{AfiSafiName: "ipv6-unicast"}, + config.AfiSafi{ + Config: config.AfiSafiConfig{ + AfiSafiName: "ipv4-unicast", + }, + }, + config.AfiSafi{ + Config: config.AfiSafiConfig{ + AfiSafiName: "ipv6-unicast", + }, + }, }, ApplyPolicy: config.ApplyPolicy{ |