summaryrefslogtreecommitdiffhomepage
path: root/config/bgp_configs.go
diff options
context:
space:
mode:
Diffstat (limited to 'config/bgp_configs.go')
-rw-r--r--config/bgp_configs.go20
1 files changed, 20 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index 4df1503d..ab5be7f9 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -2168,6 +2168,10 @@ type Received struct {
Keepalive uint64 `mapstructure:"keepalive" json:"keepalive,omitempty"`
// original -> gobgp:DYNAMIC-CAP
DynamicCap uint64 `mapstructure:"dynamic-cap" json:"dynamic-cap,omitempty"`
+ // original -> gobgp:WITHDRAW-UPDATE
+ WithdrawUpdate uint32 `mapstructure:"withdraw-update" json:"withdraw-update,omitempty"`
+ // original -> gobgp:WITHDRAW-PREFIX
+ WithdrawPrefix uint32 `mapstructure:"withdraw-prefix" json:"withdraw-prefix,omitempty"`
// original -> gobgp:DISCARDED
Discarded uint64 `mapstructure:"discarded" json:"discarded,omitempty"`
// original -> gobgp:TOTAL
@@ -2196,6 +2200,12 @@ func (lhs *Received) Equal(rhs *Received) bool {
if lhs.DynamicCap != rhs.DynamicCap {
return false
}
+ if lhs.WithdrawUpdate != rhs.WithdrawUpdate {
+ return false
+ }
+ if lhs.WithdrawPrefix != rhs.WithdrawPrefix {
+ return false
+ }
if lhs.Discarded != rhs.Discarded {
return false
}
@@ -2219,6 +2229,10 @@ type Sent struct {
Keepalive uint64 `mapstructure:"keepalive" json:"keepalive,omitempty"`
// original -> gobgp:DYNAMIC-CAP
DynamicCap uint64 `mapstructure:"dynamic-cap" json:"dynamic-cap,omitempty"`
+ // original -> gobgp:WITHDRAW-UPDATE
+ WithdrawUpdate uint32 `mapstructure:"withdraw-update" json:"withdraw-update,omitempty"`
+ // original -> gobgp:WITHDRAW-PREFIX
+ WithdrawPrefix uint32 `mapstructure:"withdraw-prefix" json:"withdraw-prefix,omitempty"`
// original -> gobgp:DISCARDED
Discarded uint64 `mapstructure:"discarded" json:"discarded,omitempty"`
// original -> gobgp:TOTAL
@@ -2247,6 +2261,12 @@ func (lhs *Sent) Equal(rhs *Sent) bool {
if lhs.DynamicCap != rhs.DynamicCap {
return false
}
+ if lhs.WithdrawUpdate != rhs.WithdrawUpdate {
+ return false
+ }
+ if lhs.WithdrawPrefix != rhs.WithdrawPrefix {
+ return false
+ }
if lhs.Discarded != rhs.Discarded {
return false
}