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.
 
 
 
 
 
 

83 lines
1.7 KiB

type APIHostConnectionOverviewList = {
local: {
inbound: {
ipAddress: {
[ipAddress: string]: {
hostUUID: string;
ifaceId: 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 APIHostStatus = 'offline' | 'booted' | 'crmd' | 'in_ccm' | 'online';
type APIHostIPMI = {
command: string;
ip: string;
password: string;
username: string;
};
type APIHostOverview = {
hostName: string;
hostStatus: APIHostStatus;
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;
ipmi?: APIHostIPMI;
networks?: APIHostNetworkList;
organization?: string;
prefix?: string;
sequence?: string;
strikerPassword?: string;
strikerUser?: string;
};
type APIDeleteHostConnectionRequestBody = { [key: 'local' | string]: string[] };