summaryrefslogtreecommitdiffhomepage
path: root/pkg
diff options
context:
space:
mode:
authorEiichiro Watanabe <a16tochjp@gmail.com>2018-11-12 14:41:58 +0900
committerEiichiro Watanabe <a16tochjp@gmail.com>2018-11-12 14:41:58 +0900
commit4cc7a81e8f5ae3c6584f26a1d9300e0522fdab7d (patch)
treed2a2061bff92c0c89f1d10c140b9175c0ab47196 /pkg
parent99556f9cfc2df561dcf7d91c147a129449635224 (diff)
Support AdminDown from config
Diffstat (limited to 'pkg')
-rw-r--r--pkg/server/grpc_server.go1
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)