Local modifications to ClusterLabs/Anvil by Alteeve
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

72 lines
1.4 KiB

type APIHostConnectionOverviewList = {
local: {
inbound: {
ipAddress: {
[ipAddress: string]: {
hostUUID: string;
ipAddress: string;
ipAddressUUID: string;
networkLinkNumber: number;
networkNumber: number;
networkType: string;
};
};
port: number;
user: string;
};
peer: {
[ipAddress: string]: {
hostUUID: string;
ipAddress: string;
isPing: boolean;
port: number;
user: string;
};
};
};
};
type APIHostInstallTarget = 'enabled' | 'disabled';
type APIHostOverview = {
hostName: string;
hostType: string;
hostUUID: string;
shortHostName: string;
};
type APIHostOverviewList = {
[hostUUID: string]: APIHostOverview;
};
type APIHostNetwork = {
createBridge?: NumberBoolean;
ip: string;
link1MacToSet: string;
link1Uuid: string;
link2MacToSet?: string;
link2Uuid?: string;
subnetMask: string;
type: NetworkType;
};
type APIHostNetworkList = {
[networkId: string]: APIHostNetwork;
};
type APIHostDetail = APIHostOverview & {
dns?: string;
domain?: string;
gateway?: string;
gatewayInterface?: string;
installTarget?: APIHostInstallTarget;
networks?: APIHostNetworkList;
organization?: string;
prefix?: string;
sequence?: string;
strikerPassword?: string;
strikerUser?: string;
};
type APIDeleteHostConnectionRequestBody = { [key: 'local' | string]: string[] };