diff options
author | Yi Tseng <a86487817@gmail.com> | 2016-04-10 17:34:38 +0800 |
---|---|---|
committer | Yi Tseng <a86487817@gmail.com> | 2016-04-11 15:57:39 +0800 |
commit | 85d038d209ec5c11e72f4b04d681e76ad8fd661f (patch) | |
tree | 9cd8e5a2343c217e92e42d78c813e64d26a208c3 /config/bgp_configs.go | |
parent | 6d401bedf5a947444a66daf5312719f6dba8b381 (diff) |
Add neighbor-port-number to bgp neighbor config
Allow user to setup neighbor BGP TCP port (Default is 179)
Diffstat (limited to 'config/bgp_configs.go')
-rw-r--r-- | config/bgp_configs.go | 3 |
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 |