diff options
Diffstat (limited to 'config/bgp_configs.go')
-rw-r--r-- | config/bgp_configs.go | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go index c2353c8f..7125db4c 100644 --- a/config/bgp_configs.go +++ b/config/bgp_configs.go @@ -2512,6 +2512,8 @@ type NeighborState struct { Flops uint32 `mapstructure:"flops"` // original -> gobgp:neighbor-interface NeighborInterface string `mapstructure:"neighbor-interface"` + // original -> gobgp:remote-router-id + RemoteRouterId string `mapstructure:"remote-router-id"` } func (lhs *NeighborState) Equal(rhs *NeighborState) bool { @@ -2589,6 +2591,9 @@ func (lhs *NeighborState) Equal(rhs *NeighborState) bool { if lhs.NeighborInterface != rhs.NeighborInterface { return false } + if lhs.RemoteRouterId != rhs.RemoteRouterId { + return false + } return true } |