diff options
author | Carl Baldwin <carl@ecbaldwin.net> | 2019-07-24 09:02:22 -0600 |
---|---|---|
committer | FUJITA Tomonori <fujita.tomonori@gmail.com> | 2019-08-28 09:06:20 +0900 |
commit | 5d7bf46000f8cae950e9e0c4d9a7a0295e88c7ac (patch) | |
tree | 477f5ab1b7712e80ce08f45c54ffa9121b5b6d19 /pkg | |
parent | 8900db7551a01d3dba019445b08357ffe0cc3bed (diff) |
Remove last remants of internal_cfg
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 { |