summaryrefslogtreecommitdiffhomepage
path: root/pkg/config
diff options
context:
space:
mode:
authorCarl Baldwin <carl@ecbaldwin.net>2019-07-24 09:02:18 -0600
committerFUJITA Tomonori <fujita.tomonori@gmail.com>2019-08-28 09:06:20 +0900
commit8900db7551a01d3dba019445b08357ffe0cc3bed (patch)
treee8e50be5aedff0bbe7989fb25a2fd523a7607f1a /pkg/config
parented1aef36e72157ae981671baaa2fd54fdbeea7f2 (diff)
Switch away from channel for one-off dry run
Diffstat (limited to 'pkg/config')
-rw-r--r--pkg/config/config.go4
1 files changed, 4 insertions, 0 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go
index 4a4394df..b369760b 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -13,6 +13,10 @@ import (
"github.com/osrg/gobgp/pkg/server"
)
+func ReadConfigFile(configFile, configType string) (*config.BgpConfigSet, error) {
+ return config.ReadConfigfile(configFile, configType)
+}
+
func marshalRouteTargets(l []string) ([]*any.Any, error) {
rtList := make([]*any.Any, 0, len(l))
for _, rtString := range l {