From 85d038d209ec5c11e72f4b04d681e76ad8fd661f Mon Sep 17 00:00:00 2001 From: Yi Tseng Date: Sun, 10 Apr 2016 17:34:38 +0800 Subject: Add neighbor-port-number to bgp neighbor config Allow user to setup neighbor BGP TCP port (Default is 179) --- config/bgp_configs.go | 3 +++ 1 file changed, 3 insertions(+) (limited to 'config') 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 -- cgit v1.2.3