luscis / openlan

Cloudify VPN written in Golang, and simple deployment via Kubernetes
http://vpn.luscis.cn
GNU General Public License v3.0
56 stars 24 forks source link

Support nexthop group for routing ha #36

Closed danieldin95 closed 7 months ago

danieldin95 commented 9 months ago

Firstly, define a nexthop group via:

"nextgroup": {
    "ng1": {
        "check": "ping",
        "ping": {
         "count": 5,
         "loss": 2
       },
        "mode": "load-balance", ## "active-backup"
        "nexthop": [
            "192.168.33.11",
            "192.168.33.10"
        ],
    }
}

And using this group: ng1 for a route nexthop:

{
    "routes": [
      {
          "prefix": "0.0.0.0/0",
          "nextgroup": "ng1"
      }
    ]
}