diff options
author | Eiichiro Watanabe <a16tochjp@gmail.com> | 2018-11-12 14:41:58 +0900 |
---|---|---|
committer | Eiichiro Watanabe <a16tochjp@gmail.com> | 2018-11-12 14:41:58 +0900 |
commit | 4cc7a81e8f5ae3c6584f26a1d9300e0522fdab7d (patch) | |
tree | d2a2061bff92c0c89f1d10c140b9175c0ab47196 /pkg | |
parent | 99556f9cfc2df561dcf7d91c147a129449635224 (diff) |
Support AdminDown from config
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/server/grpc_server.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/pkg/server/grpc_server.go b/pkg/server/grpc_server.go index 0aac4cf0..a0aef07a 100644 --- a/pkg/server/grpc_server.go +++ b/pkg/server/grpc_server.go @@ -565,6 +565,7 @@ func newNeighborFromAPIStruct(a *api.Peer) (*config.Neighbor, error) { pconf.Config.PeerGroup = a.Conf.PeerGroup pconf.Config.PeerType = config.IntToPeerTypeMap[int(a.Conf.PeerType)] pconf.Config.NeighborAddress = a.Conf.NeighborAddress + pconf.Config.AdminDown = a.Conf.AdminDown pconf.Config.NeighborInterface = a.Conf.NeighborInterface pconf.Config.Vrf = a.Conf.Vrf pconf.AsPathOptions.Config.AllowOwnAs = uint8(a.Conf.AllowOwnAs) |