From 8900db7551a01d3dba019445b08357ffe0cc3bed Mon Sep 17 00:00:00 2001 From: Carl Baldwin Date: Wed, 24 Jul 2019 09:02:18 -0600 Subject: Switch away from channel for one-off dry run --- pkg/config/config.go | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'pkg/config/config.go') 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 { -- cgit v1.2.3