summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-11-24 09:22:41 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2017-11-24 09:22:41 +0900
commitd3adb6d680a409d00791f95445f75689338f56af (patch)
tree0f6179970e8c3b25dbd7a90ecdb5b867ceca4b77
parentab756c89379a9353663e5b18402ea2205ff86877 (diff)
config: allow unconfigured peer ASN
The commit ab953211 prohibits the unconfigured peer ASN but it breaks the unnumbered BGP feature. The old behavior needs to be reverted. Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--config/default.go4
1 files changed, 0 insertions, 4 deletions
diff --git a/config/default.go b/config/default.go
index 0739b40e..b586407c 100644
--- a/config/default.go
+++ b/config/default.go
@@ -129,10 +129,6 @@ func setDefaultNeighborConfigValuesWithViper(v *viper.Viper, n *Neighbor, g *Glo
}
}
- if n.Config.PeerAs == 0 {
- return fmt.Errorf("peer-as is not set for %s", n.Config.NeighborAddress)
- }
-
if n.Config.LocalAs == 0 {
n.Config.LocalAs = g.Config.As
if !g.Confederation.Config.Enabled || n.IsConfederation(g) {