diff options
author | Naoto Hanaue <hanaue.naoto@po.ntts.co.jp> | 2015-08-12 18:28:03 +0900 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp> | 2015-08-13 20:16:47 +0900 |
commit | cf3d0eb256e94a6bc6b7bb2a293355f5c9d3a037 (patch) | |
tree | 3ea805bf6f82a2165e1aa9bb43a3f246be4ebd1a /config/bgp_configs.go | |
parent | 56ca9eee5fddd618878b076c8f70a5b495c4ce27 (diff) |
config: add rpki configuration
Diffstat (limited to 'config/bgp_configs.go')
-rw-r--r-- | config/bgp_configs.go | 81 |
1 files changed, 81 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go index 309f7d65..03e719fd 100644 --- a/config/bgp_configs.go +++ b/config/bgp_configs.go @@ -131,6 +131,85 @@ const ( BGP_ORIGIN_ATTR_TYPE_INCOMPLETE = 2 ) +//struct for container gobgp:rpki-received +type RpkiReceived struct { + // original -> gobgp:serial-notify + SerialNotify int64 + // original -> gobgp:cache-reset + CacheReset int64 + // original -> gobgp:cache-response + CacheResponse int64 + // original -> gobgp:ipv4-prefix + Ipv4Prefix int64 + // original -> gobgp:ipv6-prefix + Ipv6Prefix int64 + // original -> gobgp:end-of-data + EndOfData int64 + // original -> gobgp:error + Error int64 +} + +//struct for container gobgp:rpki-sent +type RpkiSent struct { + // original -> gobgp:serial-query + SerialQuery int64 + // original -> gobgp:reset-query + ResetQuery int64 + // original -> gobgp:error + Error int64 +} + +//struct for container gobgp:rpki-messages +type RpkiMessages struct { + // original -> gobgp:rpki-sent + RpkiSent RpkiSent + // original -> gobgp:rpki-received + RpkiReceived RpkiReceived +} + +//struct for container gobgp:state +type RpkiServerState struct { + // original -> gobgp:uptime + Uptime int64 + // original -> gobgp:downtime + Downtime int64 + // original -> gobgp:last-pdu-recv-time + LastPduRecvTime int64 + // original -> gobgp:rpki-messages + RpkiMessages RpkiMessages +} + +//struct for container gobgp:config +type RpkiServerConfig struct { + // original -> gobgp:address + //gobgp:address's original type is inet:ip-address + Address net.IP + // original -> gobgp:port + Port uint32 + // original -> gobgp:refresh-time + RefreshTime int64 + // original -> gobgp:hold-time + HoldTime int64 + // original -> gobgp:record-lifetime + RecordLifetime int64 + // original -> gobgp:preference + Preference uint8 +} + +//struct for container gobgp:rpki-server +type RpkiServer struct { + // original -> gobgp:rpki-server-config + RpkiServerConfig RpkiServerConfig + // original -> gobgp:rpki-server-state + RpkiServerState RpkiServerState +} + +//struct for container gobgp:rpki-servers +type RpkiServers struct { + // original -> gobgp:rpki-server + RpkiServerList []RpkiServer +} + //struct for container bgp:state type PeerGroupState struct { // original -> bgp:peer-as @@ -1231,6 +1310,8 @@ type Bgp struct { Neighbors Neighbors // original -> bgp:peer-groups PeerGroups PeerGroups + // original -> gobgp:rpki-servers + RpkiServers RpkiServers } //struct for container bgp-pol:set-ext-community-method |