|
@@ -412,6 +412,11 @@ func (s *Server) handleAddInterfaceIP(w http.ResponseWriter, r *http.Request) {
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // If this interface is a bridge, also sync to BridgeManager persistent config
|
|
|
|
|
+ if s.bridgeMgr != nil {
|
|
|
|
|
+ _ = s.bridgeMgr.AddBridgeIP(name, req.IP)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
writeJSON(w, http.StatusOK, map[string]any{"success": true, "name": name, "ip": req.IP})
|
|
writeJSON(w, http.StatusOK, map[string]any{"success": true, "name": name, "ip": req.IP})
|
|
|
}
|
|
}
|
|
|
|
|
|
|
@@ -428,6 +433,11 @@ func (s *Server) handleDeleteInterfaceIP(w http.ResponseWriter, r *http.Request)
|
|
|
return
|
|
return
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
|
|
+ // If this interface is a bridge, also delete from BridgeManager persistent config
|
|
|
|
|
+ if s.bridgeMgr != nil {
|
|
|
|
|
+ _ = s.bridgeMgr.DeleteBridgeIP(name, req.IP)
|
|
|
|
|
+ }
|
|
|
|
|
+
|
|
|
writeJSON(w, http.StatusOK, map[string]any{"success": true, "name": name, "ip": req.IP})
|
|
writeJSON(w, http.StatusOK, map[string]any{"success": true, "name": name, "ip": req.IP})
|
|
|
}
|
|
}
|
|
|
|
|
|