summaryrefslogtreecommitdiffhomepage
path: root/internal
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 /internal
parent99556f9cfc2df561dcf7d91c147a129449635224 (diff)
Support AdminDown from config
Diffstat (limited to 'internal')
-rw-r--r--internal/pkg/config/util.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/internal/pkg/config/util.go b/internal/pkg/config/util.go
index ed9d3049..70fc8cd9 100644
--- a/internal/pkg/config/util.go
+++ b/internal/pkg/config/util.go
@@ -456,6 +456,7 @@ func NewPeerFromConfigStruct(pconf *Neighbor) *api.Peer {
AllowOwnAs: uint32(pconf.AsPathOptions.Config.AllowOwnAs),
RemovePrivateAs: removePrivateAs,
ReplacePeerAs: pconf.AsPathOptions.Config.ReplacePeerAs,
+ AdminDown: pconf.Config.AdminDown,
},
State: &api.PeerState{
SessionState: api.PeerState_SessionState(api.PeerState_SessionState_value[strings.ToUpper(string(s.SessionState))]),