fea: bgp cli supports.

This commit is contained in:
Daniel Ding
2025-09-02 15:01:12 +08:00
parent 33518bf8e5
commit b256239329
8 changed files with 193 additions and 40 deletions

View File

@@ -128,9 +128,9 @@ type IPSecer interface {
type Bgper interface {
Enable(data schema.Bgp)
Disable()
Get() *schema.Bgp
AddNeighbor(data schema.BgpNeighbor)
DelNeighbor(data schema.BgpNeighbor)
ListNeighbor(call func(obj schema.BgpNeighbor))
}
type APICall struct {