summaryrefslogtreecommitdiffhomepage
path: root/config/bgp_configs.go
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-09-13 22:39:21 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2015-09-13 22:39:21 +0900
commit5be31cce0de1797664d4125957d157991a6fbd4a (patch)
tree5a54a2f12184ea6d7bface519707bf878df859f9 /config/bgp_configs.go
parentc717f53456e0c1ac256377bfdd933431cc6a66bd (diff)
Add bmp support
Can be enabled like: [Global] [Global.GlobalConfig] As = 64512 RouterId = "10.0.255.254" [BmpServers] [[BmpServers.BmpServerList]] [BmpServers.BmpServerList.BmpServerConfig] Address = "127.0.0.1" Port=11019 Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
Diffstat (limited to 'config/bgp_configs.go')
-rw-r--r--config/bgp_configs.go29
1 files changed, 29 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index a4a6c0ff..093be338 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -131,6 +131,33 @@ const (
BGP_ORIGIN_ATTR_TYPE_INCOMPLETE = 2
)
+//struct for container gobgp:state
+type BmpServerState struct {
+}
+
+//struct for container gobgp:config
+type BmpServerConfig struct {
+ // original -> gobgp:address
+ //gobgp:address's original type is inet:ip-address
+ Address net.IP
+ // original -> gobgp:port
+ Port uint32
+}
+
+//struct for container gobgp:bmp-server
+type BmpServer struct {
+ // original -> gobgp:bmp-server-config
+ BmpServerConfig BmpServerConfig
+ // original -> gobgp:bmp-server-state
+ BmpServerState BmpServerState
+}
+
+//struct for container gobgp:bmp-servers
+type BmpServers struct {
+ // original -> gobgp:bmp-server
+ BmpServerList []BmpServer
+}
+
//struct for container gobgp:rpki-received
type RpkiReceived struct {
// original -> gobgp:serial-notify
@@ -1320,6 +1347,8 @@ type Bgp struct {
PeerGroups PeerGroups
// original -> gobgp:rpki-servers
RpkiServers RpkiServers
+ // original -> gobgp:bmp-servers
+ BmpServers BmpServers
}
//struct for container bgp-pol:set-ext-community-method