fea: switch: do dnat.
Some checks failed
Coverage CI / build (push) Has been cancelled
CodeQL / Analyze (go) (push) Has been cancelled
Ubuntu CI / build (push) Has been cancelled

This commit is contained in:
Daniel Ding
2025-10-22 10:48:56 +08:00
parent eb9a1acc1c
commit caef90cc04
24 changed files with 382 additions and 175 deletions

View File

@@ -116,7 +116,7 @@ func (w *BgpWorker) reload() {
}
}
func (w *BgpWorker) Start(v api.Switcher) {
func (w *BgpWorker) Start(v api.SwitchApi) {
w.uuid = v.UUID()
w.out.Info("BgpWorker.Start")
w.reload()
@@ -172,7 +172,7 @@ func (w *BgpWorker) Get() *schema.Bgp {
return data
}
func (w *BgpWorker) Reload(v api.Switcher) {
func (w *BgpWorker) Reload(v api.SwitchApi) {
w.Stop()
w.Initialize()
w.Start(v)