f-28: add subnet default_route field

Signed-off-by: GnomeZworc <nicolas.boufidjeline@g3e.fr>
This commit is contained in:
GnomeZworc 2026-05-18 22:49:01 +02:00
commit bb5698fdda
Signed by: nicolas.boufideline
GPG key ID: 4406BBBF8845D632
7 changed files with 99 additions and 38 deletions

View file

@ -57,6 +57,8 @@ func (s *Server) getSubnet(w http.ResponseWriter, _ *http.Request, name string)
sub.InterfaceIP = value
case "cidr":
sub.CIDR = value
case "default_route":
sub.DefaultRoute = value == "true"
}
}
w.WriteHeader(http.StatusOK)