summaryrefslogtreecommitdiffhomepage
path: root/config/bgp_configs.go
diff options
context:
space:
mode:
authorHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2014-12-12 15:36:31 +0900
committerHiroshi Yokoi <yokoi.hiroshi@po.ntts.co.jp>2014-12-12 15:36:31 +0900
commit8ad10b1400dc573f792f0c691040cb16c32ef869 (patch)
tree3c2cd8907baa01735961c36de01fd7f03ef339ee /config/bgp_configs.go
parent9753baec964cf8b7e5c2e1abd5db60644ed09f06 (diff)
add fields of BgpNeighborCommonStateType
Diffstat (limited to 'config/bgp_configs.go')
-rw-r--r--config/bgp_configs.go39
1 files changed, 39 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index b7f7696d..ed888776 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -16,6 +16,7 @@
package config
import "net"
+import "time"
// typedef for typedef bgp:peer-type
type PeerTypeDef int
@@ -374,6 +375,44 @@ type PolicyType struct {
//struct for container bgp-neighbor-common-state
type BgpNeighborCommonStateType struct {
+ // peer-state
+ State uint32
+ // peer-uptime
+ Uptime uint64
+
+ // BGP statistics
+ // Open message input count
+ OpenIn uint32
+ // Open message output count
+ OpenOut uint32
+ // Update message input count
+ UpdateIn uint32
+ // Update message ouput count
+ UpdateOut uint32
+ // Update message received time
+ UpdateRecvTime time.Time
+ // Keepalive input count
+ KeepaliveIn uint32
+ // Keepalive output count
+ KeepaliveOut uint32
+ // Notify input count
+ NotifyIn uint32
+ // Notify output count
+ NotifyOut uint32
+ // Route Refresh input count
+ RefreshIn uint32
+ // Route Refresh output count
+ RefreshOut uint32
+ // Dynamic Capability input count
+ DynamicCapIn uint32
+ // Dynamic Capability output count
+ DynamicCapOut uint32
+
+ // BGP state count
+ // Established
+ EstablishedCount uint32
+ // Dropped
+ DroppedCount uint32
}
//struct for container transport-options