summaryrefslogtreecommitdiffhomepage
path: root/config/bgp_configs.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-03-03 11:37:05 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-03-03 11:37:05 +0900
commit69cffeb94386911fb47f5d043bfdf09a61091d42 (patch)
treedc88dbb0c5d4be9b6b1a0688beca934ed760d7f2 /config/bgp_configs.go
parentc6fc099c6a30e9cbea473fae5530d33bc6f6172b (diff)
config: remove time.Time in BgpNeighborCommonStateType
This is part of work to remove time.Time in bgp_config.go since no nice way to represent time.Time with yang. We replace time.Time with int64. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'config/bgp_configs.go')
-rw-r--r--config/bgp_configs.go7
1 files changed, 3 insertions, 4 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index 0aa1a18a..acac016c 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -16,7 +16,6 @@
package config
import "net"
-import "time"
// typedef for typedef bgp:peer-type
type PeerTypeDef int
@@ -372,8 +371,8 @@ type BgpNeighborCommonStateType struct {
// peer-state
State uint32
// peer-uptime
- Uptime time.Time
- Downtime time.Time
+ Uptime int64
+ Downtime int64
// BGP statistics
// Open message input count
@@ -385,7 +384,7 @@ type BgpNeighborCommonStateType struct {
// Update message ouput count
UpdateOut uint32
// Update message received time
- UpdateRecvTime time.Time
+ UpdateRecvTime int64
// Keepalive input count
KeepaliveIn uint32
// Keepalive output count