diff options
author | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-05-17 15:38:43 +0900 |
---|---|---|
committer | IWASE Yusuke <iwase.yusuke0@gmail.com> | 2017-05-22 13:12:02 +0900 |
commit | 76ba8fcbda9480f9356d1733799974771f0280b0 (patch) | |
tree | af3b5917063491b238cb4b00cea6dc6e185c601a /config/bgp_configs.go | |
parent | c37b50a024f4b90edf390b3f60d3df0f6c1901e2 (diff) |
server/peer: Number of filtered routes to advertise
This patch extend the "AdjTable" container to store the number of the
"filtered" routes which should not be advertised to the given neighbor.
This routes mean the filterd routes because of RTC, VRFs, policy and
other constraints.
Signed-off-by: IWASE Yusuke <iwase.yusuke0@gmail.com>
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 9deb98dd..45515d00 100644 --- a/config/bgp_configs.go +++ b/config/bgp_configs.go @@ -2100,6 +2100,8 @@ func (lhs *Timers) Equal(rhs *Timers) bool { type AdjTable struct { // original -> gobgp:ADVERTISED Advertised uint32 `mapstructure:"advertised" json:"advertised,omitempty"` + // original -> gobgp:FILTERED + Filtered uint32 `mapstructure:"filtered" json:"filtered,omitempty"` // original -> gobgp:RECEIVED Received uint32 `mapstructure:"received" json:"received,omitempty"` // original -> gobgp:ACCEPTED @@ -2113,6 +2115,9 @@ func (lhs *AdjTable) Equal(rhs *AdjTable) bool { if lhs.Advertised != rhs.Advertised { return false } + if lhs.Filtered != rhs.Filtered { + return false + } if lhs.Received != rhs.Received { return false } |