summaryrefslogtreecommitdiffhomepage
path: root/pkg/config/config.go
diff options
context:
space:
mode:
Diffstat (limited to 'pkg/config/config.go')
-rw-r--r--pkg/config/config.go6
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/config/config.go b/pkg/config/config.go
index b369760b..e6ef0d20 100644
--- a/pkg/config/config.go
+++ b/pkg/config/config.go
@@ -17,6 +17,12 @@ func ReadConfigFile(configFile, configType string) (*config.BgpConfigSet, error)
return config.ReadConfigfile(configFile, configType)
}
+func ReadConfigFileOnSighup(configFile, configType string) chan *config.BgpConfigSet {
+ ch := make(chan *config.BgpConfigSet)
+ go config.ReadConfigfileServe(configFile, configType, ch)
+ return ch
+}
+
func marshalRouteTargets(l []string) ([]*any.Any, error) {
rtList := make([]*any.Any, 0, len(l))
for _, rtString := range l {