diff options
Diffstat (limited to 'pkg')
-rw-r--r-- | pkg/config/config.go | 6 |
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 { |