summaryrefslogtreecommitdiffhomepage
path: root/config
diff options
context:
space:
mode:
authorYi Tseng <a86487817@gmail.com>2016-04-10 17:34:38 +0800
committerYi Tseng <a86487817@gmail.com>2016-04-11 15:57:39 +0800
commit85d038d209ec5c11e72f4b04d681e76ad8fd661f (patch)
tree9cd8e5a2343c217e92e42d78c813e64d26a208c3 /config
parent6d401bedf5a947444a66daf5312719f6dba8b381 (diff)
Add neighbor-port-number to bgp neighbor config
Allow user to setup neighbor BGP TCP port (Default is 179)
Diffstat (limited to 'config')
-rw-r--r--config/bgp_configs.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/config/bgp_configs.go b/config/bgp_configs.go
index 3a5a1b6b..d5eb930d 100644
--- a/config/bgp_configs.go
+++ b/config/bgp_configs.go
@@ -1480,6 +1480,9 @@ type NeighborConfig struct {
// original -> bgp:neighbor-address
//bgp:neighbor-address's original type is inet:ip-address
NeighborAddress string `mapstructure:"neighbor-address"`
+ // original -> gobgp:neighbor-port-number
+ //gobgp:neighbor-port-number's original type is inet:port-number
+ NeighborPortNumber uint16 `mapstructure:"neighbor-port-number"`
}
//struct for container bgp:neighbor