Add support to bridge option on Web UI
All checks were successful
continuous-integration/drone/push Build is passing
All checks were successful
continuous-integration/drone/push Build is passing
This commit is contained in:
@ -217,4 +217,16 @@ export class ServerApi {
|
||||
})
|
||||
).data;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get host networks bridges list
|
||||
*/
|
||||
static async GetNetworksBridgesList(): Promise<string[]> {
|
||||
return (
|
||||
await APIClient.exec({
|
||||
method: "GET",
|
||||
uri: "/server/bridges",
|
||||
})
|
||||
).data;
|
||||
}
|
||||
}
|
||||
|
@ -50,7 +50,11 @@ export interface VMNetInterfaceFilter {
|
||||
parameters: VMNetInterfaceFilterParams[];
|
||||
}
|
||||
|
||||
export type VMNetInterface = (VMNetUserspaceSLIRPStack | VMNetDefinedNetwork) &
|
||||
export type VMNetInterface = (
|
||||
| VMNetUserspaceSLIRPStack
|
||||
| VMNetDefinedNetwork
|
||||
| VMNetBridge
|
||||
) &
|
||||
VMNetInterfaceBase;
|
||||
|
||||
export interface VMNetInterfaceBase {
|
||||
@ -67,6 +71,11 @@ export interface VMNetDefinedNetwork {
|
||||
network: string;
|
||||
}
|
||||
|
||||
export interface VMNetBridge {
|
||||
type: "Bridge";
|
||||
bridge: string;
|
||||
}
|
||||
|
||||
interface VMInfoInterface {
|
||||
name: string;
|
||||
uuid?: string;
|
||||
|
Reference in New Issue
Block a user