diff options
author | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-22 07:15:36 +0000 |
---|---|---|
committer | ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp> | 2016-04-27 10:32:42 +0000 |
commit | 6e8d1bb1626996fbaa80b4b0a4322b2bdc27ce6e (patch) | |
tree | 863afb30b80284dbc7184a81ce9d3c12bfbd2f80 /config/bgp_configs.go | |
parent | 3075ae5df98c1f6de73fd33ab5900a81cec3845b (diff) |
config: support reload of AdminDown
Signed-off-by: ISHIDA Wataru <ishida.wataru@lab.ntt.co.jp>
Diffstat (limited to 'config/bgp_configs.go')
-rw-r--r-- | config/bgp_configs.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go index c259d426..57866339 100644 --- a/config/bgp_configs.go +++ b/config/bgp_configs.go @@ -2307,6 +2307,9 @@ type NeighborConfig struct { // original -> bgp:neighbor-address //bgp:neighbor-address's original type is inet:ip-address NeighborAddress string `mapstructure:"neighbor-address"` + // original -> gobgp:admin-down + //gobgp:admin-down's original type is boolean + AdminDown bool `mapstructure:"admin-down"` } func (lhs *NeighborConfig) Equal(rhs *NeighborConfig) bool { @@ -2343,6 +2346,9 @@ func (lhs *NeighborConfig) Equal(rhs *NeighborConfig) bool { if lhs.NeighborAddress != rhs.NeighborAddress { return false } + if lhs.AdminDown != rhs.AdminDown { + return false + } return true } |