summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--config/bgp_configs.go20
-rw-r--r--tools/pyang_plugins/gobgp.yang13
2 files changed, 32 insertions, 1 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
}
diff --git a/tools/pyang_plugins/gobgp.yang b/tools/pyang_plugins/gobgp.yang
index f6e7fb64..adac3956 100644
--- a/tools/pyang_plugins/gobgp.yang
+++ b/tools/pyang_plugins/gobgp.yang
@@ -180,6 +180,18 @@ module gobgp {
error condition has occurred exchanged.";
}
+ leaf WITHDRAW-UPDATE {
+ type uint32;
+ description
+ "Number of updates subjected to treat-as-withdraw treatment.";
+ }
+
+ leaf WITHDRAW-PREFIX {
+ type uint32;
+ description
+ "Number of prefixes subjected to treat-as-withdraw treatment.";
+ }
+
leaf DISCARDED {
type uint64;
description
@@ -195,7 +207,6 @@ module gobgp {
}
}
-
grouping gobgp-adjacent-table {
container adj-table {
leaf ADVERTISED {