@kubevirt-ui-ext/kubevirt-api 1.8.0 → 1.8.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/console/index.cjs +1 -1
- package/dist/console/index.cjs.map +1 -1
- package/dist/console/index.js +1 -1
- package/dist/console/index.js.map +1 -1
- package/dist/containerized-data-importer/index.cjs +1 -1
- package/dist/containerized-data-importer/index.cjs.map +1 -1
- package/dist/containerized-data-importer/index.d.cts +1310 -14
- package/dist/containerized-data-importer/index.d.ts +1310 -14
- package/dist/containerized-data-importer/index.js +1 -1
- package/dist/containerized-data-importer/index.js.map +1 -1
- package/dist/kubernetes/index.cjs +1 -1
- package/dist/kubernetes/index.cjs.map +1 -1
- package/dist/kubernetes/index.d.cts +21875 -1
- package/dist/kubernetes/index.d.ts +21875 -1
- package/dist/kubernetes/index.js +1 -0
- package/dist/kubernetes/index.js.map +1 -1
- package/dist/kubevirt/index.cjs +1 -1
- package/dist/kubevirt/index.cjs.map +1 -1
- package/dist/kubevirt/index.d.cts +8392 -1383
- package/dist/kubevirt/index.d.ts +8392 -1383
- package/dist/kubevirt/index.js +1 -1
- package/dist/kubevirt/index.js.map +1 -1
- package/dist/nmstate/index.cjs +1 -1
- package/dist/nmstate/index.cjs.map +1 -1
- package/dist/nmstate/index.d.cts +688 -1
- package/dist/nmstate/index.d.ts +688 -1
- package/dist/nmstate/index.js +1 -0
- package/dist/nmstate/index.js.map +1 -1
- package/package.json +6 -3
package/dist/nmstate/index.d.ts
CHANGED
|
@@ -1,3 +1,174 @@
|
|
|
1
|
+
/**
|
|
2
|
+
*
|
|
3
|
+
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
4
|
+
*
|
|
5
|
+
* The version of the OpenAPI document: 1.0.0
|
|
6
|
+
*
|
|
7
|
+
*
|
|
8
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
+
* https://openapi-generator.tech
|
|
10
|
+
* Do not edit the class manually.
|
|
11
|
+
*/
|
|
12
|
+
declare const BASE_PATH: string;
|
|
13
|
+
interface ConfigurationParameters {
|
|
14
|
+
basePath?: string;
|
|
15
|
+
fetchApi?: FetchAPI;
|
|
16
|
+
middleware?: Middleware[];
|
|
17
|
+
queryParamsStringify?: (params: HTTPQuery) => string;
|
|
18
|
+
username?: string;
|
|
19
|
+
password?: string;
|
|
20
|
+
apiKey?: string | ((name: string) => string);
|
|
21
|
+
accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string | Promise<string>);
|
|
22
|
+
headers?: HTTPHeaders;
|
|
23
|
+
credentials?: RequestCredentials;
|
|
24
|
+
}
|
|
25
|
+
declare class Configuration {
|
|
26
|
+
private configuration;
|
|
27
|
+
constructor(configuration?: ConfigurationParameters);
|
|
28
|
+
set config(configuration: Configuration);
|
|
29
|
+
get basePath(): string;
|
|
30
|
+
get fetchApi(): FetchAPI | undefined;
|
|
31
|
+
get middleware(): Middleware[];
|
|
32
|
+
get queryParamsStringify(): (params: HTTPQuery) => string;
|
|
33
|
+
get username(): string | undefined;
|
|
34
|
+
get password(): string | undefined;
|
|
35
|
+
get apiKey(): ((name: string) => string) | undefined;
|
|
36
|
+
get accessToken(): ((name?: string, scopes?: string[]) => string | Promise<string>) | undefined;
|
|
37
|
+
get headers(): HTTPHeaders | undefined;
|
|
38
|
+
get credentials(): RequestCredentials | undefined;
|
|
39
|
+
}
|
|
40
|
+
declare const DefaultConfig: Configuration;
|
|
41
|
+
/**
|
|
42
|
+
* This is the base class for all generated API classes.
|
|
43
|
+
*/
|
|
44
|
+
declare class BaseAPI {
|
|
45
|
+
protected configuration: Configuration;
|
|
46
|
+
private middleware;
|
|
47
|
+
constructor(configuration?: Configuration);
|
|
48
|
+
withMiddleware<T extends BaseAPI>(this: T, ...middlewares: Middleware[]): T;
|
|
49
|
+
withPreMiddleware<T extends BaseAPI>(this: T, ...preMiddlewares: Array<Middleware['pre']>): T;
|
|
50
|
+
withPostMiddleware<T extends BaseAPI>(this: T, ...postMiddlewares: Array<Middleware['post']>): T;
|
|
51
|
+
protected request(context: RequestOpts, initOverrides?: RequestInit | InitOverrideFunction): Promise<Response>;
|
|
52
|
+
private createFetchParams;
|
|
53
|
+
private fetchApi;
|
|
54
|
+
/**
|
|
55
|
+
* Create a shallow clone of `this` by constructing a new instance
|
|
56
|
+
* and then shallow cloning data members.
|
|
57
|
+
*/
|
|
58
|
+
private clone;
|
|
59
|
+
}
|
|
60
|
+
declare class ResponseError extends Error {
|
|
61
|
+
response: Response;
|
|
62
|
+
name: 'ResponseError';
|
|
63
|
+
constructor(response: Response, msg?: string);
|
|
64
|
+
}
|
|
65
|
+
declare class FetchError extends Error {
|
|
66
|
+
cause: Error;
|
|
67
|
+
name: 'FetchError';
|
|
68
|
+
constructor(cause: Error, msg?: string);
|
|
69
|
+
}
|
|
70
|
+
declare class RequiredError extends Error {
|
|
71
|
+
field: string;
|
|
72
|
+
name: 'RequiredError';
|
|
73
|
+
constructor(field: string, msg?: string);
|
|
74
|
+
}
|
|
75
|
+
declare const COLLECTION_FORMATS: {
|
|
76
|
+
csv: string;
|
|
77
|
+
ssv: string;
|
|
78
|
+
tsv: string;
|
|
79
|
+
pipes: string;
|
|
80
|
+
};
|
|
81
|
+
declare type FetchAPI = WindowOrWorkerGlobalScope['fetch'];
|
|
82
|
+
declare type Json = any;
|
|
83
|
+
declare type HTTPMethod = 'GET' | 'POST' | 'PUT' | 'PATCH' | 'DELETE' | 'OPTIONS' | 'HEAD';
|
|
84
|
+
declare type HTTPHeaders = {
|
|
85
|
+
[key: string]: string;
|
|
86
|
+
};
|
|
87
|
+
declare type HTTPQuery = {
|
|
88
|
+
[key: string]: string | number | null | boolean | Array<string | number | null | boolean> | Set<string | number | null | boolean> | HTTPQuery;
|
|
89
|
+
};
|
|
90
|
+
declare type HTTPBody = Json | FormData | URLSearchParams;
|
|
91
|
+
declare type HTTPRequestInit = {
|
|
92
|
+
headers?: HTTPHeaders;
|
|
93
|
+
method: HTTPMethod;
|
|
94
|
+
credentials?: RequestCredentials;
|
|
95
|
+
body?: HTTPBody;
|
|
96
|
+
};
|
|
97
|
+
declare type ModelPropertyNaming = 'camelCase' | 'snake_case' | 'PascalCase' | 'original';
|
|
98
|
+
declare type InitOverrideFunction = (requestContext: {
|
|
99
|
+
init: HTTPRequestInit;
|
|
100
|
+
context: RequestOpts;
|
|
101
|
+
}) => Promise<RequestInit>;
|
|
102
|
+
interface FetchParams {
|
|
103
|
+
url: string;
|
|
104
|
+
init: RequestInit;
|
|
105
|
+
}
|
|
106
|
+
interface RequestOpts {
|
|
107
|
+
path: string;
|
|
108
|
+
method: HTTPMethod;
|
|
109
|
+
headers: HTTPHeaders;
|
|
110
|
+
query?: HTTPQuery;
|
|
111
|
+
body?: HTTPBody;
|
|
112
|
+
}
|
|
113
|
+
declare function exists(json: any, key: string): boolean;
|
|
114
|
+
declare function querystring(params: HTTPQuery, prefix?: string): string;
|
|
115
|
+
declare function mapValues(data: any, fn: (item: any) => any): {};
|
|
116
|
+
declare function canConsumeForm(consumes: Consume[]): boolean;
|
|
117
|
+
interface Consume {
|
|
118
|
+
contentType: string;
|
|
119
|
+
}
|
|
120
|
+
interface RequestContext {
|
|
121
|
+
fetch: FetchAPI;
|
|
122
|
+
url: string;
|
|
123
|
+
init: RequestInit;
|
|
124
|
+
}
|
|
125
|
+
interface ResponseContext {
|
|
126
|
+
fetch: FetchAPI;
|
|
127
|
+
url: string;
|
|
128
|
+
init: RequestInit;
|
|
129
|
+
response: Response;
|
|
130
|
+
}
|
|
131
|
+
interface ErrorContext {
|
|
132
|
+
fetch: FetchAPI;
|
|
133
|
+
url: string;
|
|
134
|
+
init: RequestInit;
|
|
135
|
+
error: unknown;
|
|
136
|
+
response?: Response;
|
|
137
|
+
}
|
|
138
|
+
interface Middleware {
|
|
139
|
+
pre?(context: RequestContext): Promise<FetchParams | void>;
|
|
140
|
+
post?(context: ResponseContext): Promise<Response | void>;
|
|
141
|
+
onError?(context: ErrorContext): Promise<Response | void>;
|
|
142
|
+
}
|
|
143
|
+
interface ApiResponse<T> {
|
|
144
|
+
raw: Response;
|
|
145
|
+
value(): Promise<T>;
|
|
146
|
+
}
|
|
147
|
+
interface ResponseTransformer<T> {
|
|
148
|
+
(json: any): T;
|
|
149
|
+
}
|
|
150
|
+
declare class JSONApiResponse<T> {
|
|
151
|
+
raw: Response;
|
|
152
|
+
private transformer;
|
|
153
|
+
constructor(raw: Response, transformer?: ResponseTransformer<T>);
|
|
154
|
+
value(): Promise<T>;
|
|
155
|
+
}
|
|
156
|
+
declare class VoidApiResponse {
|
|
157
|
+
raw: Response;
|
|
158
|
+
constructor(raw: Response);
|
|
159
|
+
value(): Promise<void>;
|
|
160
|
+
}
|
|
161
|
+
declare class BlobApiResponse {
|
|
162
|
+
raw: Response;
|
|
163
|
+
constructor(raw: Response);
|
|
164
|
+
value(): Promise<Blob>;
|
|
165
|
+
}
|
|
166
|
+
declare class TextApiResponse {
|
|
167
|
+
raw: Response;
|
|
168
|
+
constructor(raw: Response);
|
|
169
|
+
value(): Promise<string>;
|
|
170
|
+
}
|
|
171
|
+
|
|
1
172
|
/**
|
|
2
173
|
*
|
|
3
174
|
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
|
|
@@ -35,6 +206,13 @@ interface V1NodeNetworkConfigurationPolicyStatus {
|
|
|
35
206
|
*/
|
|
36
207
|
unavailableNodeCount?: any | null;
|
|
37
208
|
}
|
|
209
|
+
/**
|
|
210
|
+
* Check if a given object implements the V1NodeNetworkConfigurationPolicyStatus interface.
|
|
211
|
+
*/
|
|
212
|
+
declare function instanceOfV1NodeNetworkConfigurationPolicyStatus(_value: object): boolean;
|
|
213
|
+
declare function V1NodeNetworkConfigurationPolicyStatusFromJSON(json: any): V1NodeNetworkConfigurationPolicyStatus;
|
|
214
|
+
declare function V1NodeNetworkConfigurationPolicyStatusFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1NodeNetworkConfigurationPolicyStatus;
|
|
215
|
+
declare function V1NodeNetworkConfigurationPolicyStatusToJSON(value?: V1NodeNetworkConfigurationPolicyStatus | null): any;
|
|
38
216
|
|
|
39
217
|
/**
|
|
40
218
|
*
|
|
@@ -64,6 +242,13 @@ interface V1NMStateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuring
|
|
|
64
242
|
*/
|
|
65
243
|
nodeSelectorTerms: any | null;
|
|
66
244
|
}
|
|
245
|
+
/**
|
|
246
|
+
* Check if a given object implements the V1NMStateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution interface.
|
|
247
|
+
*/
|
|
248
|
+
declare function instanceOfV1NMStateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution(_value: object): boolean;
|
|
249
|
+
declare function V1NMStateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionFromJSON(json: any): V1NMStateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution;
|
|
250
|
+
declare function V1NMStateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1NMStateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution;
|
|
251
|
+
declare function V1NMStateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionToJSON(value?: V1NMStateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution | null): any;
|
|
67
252
|
|
|
68
253
|
/**
|
|
69
254
|
*
|
|
@@ -104,6 +289,13 @@ interface V1NMStateSpecAffinityNodeAffinity {
|
|
|
104
289
|
*/
|
|
105
290
|
requiredDuringSchedulingIgnoredDuringExecution?: V1NMStateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution;
|
|
106
291
|
}
|
|
292
|
+
/**
|
|
293
|
+
* Check if a given object implements the V1NMStateSpecAffinityNodeAffinity interface.
|
|
294
|
+
*/
|
|
295
|
+
declare function instanceOfV1NMStateSpecAffinityNodeAffinity(_value: object): boolean;
|
|
296
|
+
declare function V1NMStateSpecAffinityNodeAffinityFromJSON(json: any): V1NMStateSpecAffinityNodeAffinity;
|
|
297
|
+
declare function V1NMStateSpecAffinityNodeAffinityFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1NMStateSpecAffinityNodeAffinity;
|
|
298
|
+
declare function V1NMStateSpecAffinityNodeAffinityToJSON(value?: V1NMStateSpecAffinityNodeAffinity | null): any;
|
|
107
299
|
|
|
108
300
|
/**
|
|
109
301
|
*
|
|
@@ -149,6 +341,13 @@ interface V1NMStateSpecAffinityPodAffinity {
|
|
|
149
341
|
*/
|
|
150
342
|
requiredDuringSchedulingIgnoredDuringExecution?: any | null;
|
|
151
343
|
}
|
|
344
|
+
/**
|
|
345
|
+
* Check if a given object implements the V1NMStateSpecAffinityPodAffinity interface.
|
|
346
|
+
*/
|
|
347
|
+
declare function instanceOfV1NMStateSpecAffinityPodAffinity(_value: object): boolean;
|
|
348
|
+
declare function V1NMStateSpecAffinityPodAffinityFromJSON(json: any): V1NMStateSpecAffinityPodAffinity;
|
|
349
|
+
declare function V1NMStateSpecAffinityPodAffinityFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1NMStateSpecAffinityPodAffinity;
|
|
350
|
+
declare function V1NMStateSpecAffinityPodAffinityToJSON(value?: V1NMStateSpecAffinityPodAffinity | null): any;
|
|
152
351
|
|
|
153
352
|
/**
|
|
154
353
|
*
|
|
@@ -194,6 +393,13 @@ interface V1NMStateSpecAffinityPodAntiAffinity {
|
|
|
194
393
|
*/
|
|
195
394
|
requiredDuringSchedulingIgnoredDuringExecution?: any | null;
|
|
196
395
|
}
|
|
396
|
+
/**
|
|
397
|
+
* Check if a given object implements the V1NMStateSpecAffinityPodAntiAffinity interface.
|
|
398
|
+
*/
|
|
399
|
+
declare function instanceOfV1NMStateSpecAffinityPodAntiAffinity(_value: object): boolean;
|
|
400
|
+
declare function V1NMStateSpecAffinityPodAntiAffinityFromJSON(json: any): V1NMStateSpecAffinityPodAntiAffinity;
|
|
401
|
+
declare function V1NMStateSpecAffinityPodAntiAffinityFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1NMStateSpecAffinityPodAntiAffinity;
|
|
402
|
+
declare function V1NMStateSpecAffinityPodAntiAffinityToJSON(value?: V1NMStateSpecAffinityPodAntiAffinity | null): any;
|
|
197
403
|
|
|
198
404
|
/**
|
|
199
405
|
*
|
|
@@ -232,6 +438,13 @@ interface V1NMStateSpecAffinity {
|
|
|
232
438
|
*/
|
|
233
439
|
podAntiAffinity?: V1NMStateSpecAffinityPodAntiAffinity;
|
|
234
440
|
}
|
|
441
|
+
/**
|
|
442
|
+
* Check if a given object implements the V1NMStateSpecAffinity interface.
|
|
443
|
+
*/
|
|
444
|
+
declare function instanceOfV1NMStateSpecAffinity(_value: object): boolean;
|
|
445
|
+
declare function V1NMStateSpecAffinityFromJSON(json: any): V1NMStateSpecAffinity;
|
|
446
|
+
declare function V1NMStateSpecAffinityFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1NMStateSpecAffinity;
|
|
447
|
+
declare function V1NMStateSpecAffinityToJSON(value?: V1NMStateSpecAffinity | null): any;
|
|
235
448
|
|
|
236
449
|
/**
|
|
237
450
|
*
|
|
@@ -270,6 +483,13 @@ interface V1NMStateSpecInfraAffinity {
|
|
|
270
483
|
*/
|
|
271
484
|
podAntiAffinity?: V1NMStateSpecAffinityPodAntiAffinity;
|
|
272
485
|
}
|
|
486
|
+
/**
|
|
487
|
+
* Check if a given object implements the V1NMStateSpecInfraAffinity interface.
|
|
488
|
+
*/
|
|
489
|
+
declare function instanceOfV1NMStateSpecInfraAffinity(_value: object): boolean;
|
|
490
|
+
declare function V1NMStateSpecInfraAffinityFromJSON(json: any): V1NMStateSpecInfraAffinity;
|
|
491
|
+
declare function V1NMStateSpecInfraAffinityFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1NMStateSpecInfraAffinity;
|
|
492
|
+
declare function V1NMStateSpecInfraAffinityToJSON(value?: V1NMStateSpecInfraAffinity | null): any;
|
|
273
493
|
|
|
274
494
|
/**
|
|
275
495
|
*
|
|
@@ -295,6 +515,13 @@ interface V1NMStateSpecProbeConfigurationDns {
|
|
|
295
515
|
*/
|
|
296
516
|
host: any | null;
|
|
297
517
|
}
|
|
518
|
+
/**
|
|
519
|
+
* Check if a given object implements the V1NMStateSpecProbeConfigurationDns interface.
|
|
520
|
+
*/
|
|
521
|
+
declare function instanceOfV1NMStateSpecProbeConfigurationDns(_value: object): boolean;
|
|
522
|
+
declare function V1NMStateSpecProbeConfigurationDnsFromJSON(json: any): V1NMStateSpecProbeConfigurationDns;
|
|
523
|
+
declare function V1NMStateSpecProbeConfigurationDnsFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1NMStateSpecProbeConfigurationDns;
|
|
524
|
+
declare function V1NMStateSpecProbeConfigurationDnsToJSON(value?: V1NMStateSpecProbeConfigurationDns | null): any;
|
|
298
525
|
|
|
299
526
|
/**
|
|
300
527
|
*
|
|
@@ -322,6 +549,13 @@ interface V1NMStateSpecProbeConfiguration {
|
|
|
322
549
|
*/
|
|
323
550
|
dns?: V1NMStateSpecProbeConfigurationDns;
|
|
324
551
|
}
|
|
552
|
+
/**
|
|
553
|
+
* Check if a given object implements the V1NMStateSpecProbeConfiguration interface.
|
|
554
|
+
*/
|
|
555
|
+
declare function instanceOfV1NMStateSpecProbeConfiguration(_value: object): boolean;
|
|
556
|
+
declare function V1NMStateSpecProbeConfigurationFromJSON(json: any): V1NMStateSpecProbeConfiguration;
|
|
557
|
+
declare function V1NMStateSpecProbeConfigurationFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1NMStateSpecProbeConfiguration;
|
|
558
|
+
declare function V1NMStateSpecProbeConfigurationToJSON(value?: V1NMStateSpecProbeConfiguration | null): any;
|
|
325
559
|
|
|
326
560
|
/**
|
|
327
561
|
*
|
|
@@ -367,6 +601,13 @@ interface V1NMStateSpecSelfSignConfiguration {
|
|
|
367
601
|
*/
|
|
368
602
|
certRotateInterval?: any | null;
|
|
369
603
|
}
|
|
604
|
+
/**
|
|
605
|
+
* Check if a given object implements the V1NMStateSpecSelfSignConfiguration interface.
|
|
606
|
+
*/
|
|
607
|
+
declare function instanceOfV1NMStateSpecSelfSignConfiguration(_value: object): boolean;
|
|
608
|
+
declare function V1NMStateSpecSelfSignConfigurationFromJSON(json: any): V1NMStateSpecSelfSignConfiguration;
|
|
609
|
+
declare function V1NMStateSpecSelfSignConfigurationFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1NMStateSpecSelfSignConfiguration;
|
|
610
|
+
declare function V1NMStateSpecSelfSignConfigurationToJSON(value?: V1NMStateSpecSelfSignConfiguration | null): any;
|
|
370
611
|
|
|
371
612
|
/**
|
|
372
613
|
*
|
|
@@ -447,6 +688,13 @@ interface V1NMStateSpec {
|
|
|
447
688
|
*/
|
|
448
689
|
tolerations?: any | null;
|
|
449
690
|
}
|
|
691
|
+
/**
|
|
692
|
+
* Check if a given object implements the V1NMStateSpec interface.
|
|
693
|
+
*/
|
|
694
|
+
declare function instanceOfV1NMStateSpec(_value: object): boolean;
|
|
695
|
+
declare function V1NMStateSpecFromJSON(json: any): V1NMStateSpec;
|
|
696
|
+
declare function V1NMStateSpecFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1NMStateSpec;
|
|
697
|
+
declare function V1NMStateSpecToJSON(value?: V1NMStateSpec | null): any;
|
|
450
698
|
|
|
451
699
|
/**
|
|
452
700
|
*
|
|
@@ -472,6 +720,13 @@ interface V1NMStateStatus {
|
|
|
472
720
|
*/
|
|
473
721
|
conditions?: any | null;
|
|
474
722
|
}
|
|
723
|
+
/**
|
|
724
|
+
* Check if a given object implements the V1NMStateStatus interface.
|
|
725
|
+
*/
|
|
726
|
+
declare function instanceOfV1NMStateStatus(_value: object): boolean;
|
|
727
|
+
declare function V1NMStateStatusFromJSON(json: any): V1NMStateStatus;
|
|
728
|
+
declare function V1NMStateStatusFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1NMStateStatus;
|
|
729
|
+
declare function V1NMStateStatusToJSON(value?: V1NMStateStatus | null): any;
|
|
475
730
|
|
|
476
731
|
/**
|
|
477
732
|
*
|
|
@@ -529,6 +784,13 @@ interface V1NMState {
|
|
|
529
784
|
*/
|
|
530
785
|
status?: V1NMStateStatus;
|
|
531
786
|
}
|
|
787
|
+
/**
|
|
788
|
+
* Check if a given object implements the V1NMState interface.
|
|
789
|
+
*/
|
|
790
|
+
declare function instanceOfV1NMState(_value: object): boolean;
|
|
791
|
+
declare function V1NMStateFromJSON(json: any): V1NMState;
|
|
792
|
+
declare function V1NMStateFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1NMState;
|
|
793
|
+
declare function V1NMStateToJSON(value?: V1NMState | null): any;
|
|
532
794
|
|
|
533
795
|
/**
|
|
534
796
|
*
|
|
@@ -580,6 +842,13 @@ interface V1NodeNetworkConfigurationPolicySpec {
|
|
|
580
842
|
[key: string]: any;
|
|
581
843
|
} | null;
|
|
582
844
|
}
|
|
845
|
+
/**
|
|
846
|
+
* Check if a given object implements the V1NodeNetworkConfigurationPolicySpec interface.
|
|
847
|
+
*/
|
|
848
|
+
declare function instanceOfV1NodeNetworkConfigurationPolicySpec(_value: object): boolean;
|
|
849
|
+
declare function V1NodeNetworkConfigurationPolicySpecFromJSON(json: any): V1NodeNetworkConfigurationPolicySpec;
|
|
850
|
+
declare function V1NodeNetworkConfigurationPolicySpecFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1NodeNetworkConfigurationPolicySpec;
|
|
851
|
+
declare function V1NodeNetworkConfigurationPolicySpecToJSON(value?: V1NodeNetworkConfigurationPolicySpec | null): any;
|
|
583
852
|
|
|
584
853
|
/**
|
|
585
854
|
*
|
|
@@ -637,6 +906,13 @@ interface V1beta1NodeNetworkConfigurationPolicy {
|
|
|
637
906
|
*/
|
|
638
907
|
status?: V1NodeNetworkConfigurationPolicyStatus;
|
|
639
908
|
}
|
|
909
|
+
/**
|
|
910
|
+
* Check if a given object implements the V1beta1NodeNetworkConfigurationPolicy interface.
|
|
911
|
+
*/
|
|
912
|
+
declare function instanceOfV1beta1NodeNetworkConfigurationPolicy(_value: object): boolean;
|
|
913
|
+
declare function V1beta1NodeNetworkConfigurationPolicyFromJSON(json: any): V1beta1NodeNetworkConfigurationPolicy;
|
|
914
|
+
declare function V1beta1NodeNetworkConfigurationPolicyFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1beta1NodeNetworkConfigurationPolicy;
|
|
915
|
+
declare function V1beta1NodeNetworkConfigurationPolicyToJSON(value?: V1beta1NodeNetworkConfigurationPolicy | null): any;
|
|
640
916
|
|
|
641
917
|
/**
|
|
642
918
|
*
|
|
@@ -668,6 +944,13 @@ interface V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueMetaI
|
|
|
668
944
|
*/
|
|
669
945
|
version?: any | null;
|
|
670
946
|
}
|
|
947
|
+
/**
|
|
948
|
+
* Check if a given object implements the V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueMetaInfo interface.
|
|
949
|
+
*/
|
|
950
|
+
declare function instanceOfV1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueMetaInfo(_value: object): boolean;
|
|
951
|
+
declare function V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueMetaInfoFromJSON(json: any): V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueMetaInfo;
|
|
952
|
+
declare function V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueMetaInfoFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueMetaInfo;
|
|
953
|
+
declare function V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueMetaInfoToJSON(value?: V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueMetaInfo | null): any;
|
|
671
954
|
|
|
672
955
|
/**
|
|
673
956
|
*
|
|
@@ -700,6 +983,13 @@ interface V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValue {
|
|
|
700
983
|
*/
|
|
701
984
|
state?: any | null;
|
|
702
985
|
}
|
|
986
|
+
/**
|
|
987
|
+
* Check if a given object implements the V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValue interface.
|
|
988
|
+
*/
|
|
989
|
+
declare function instanceOfV1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValue(_value: object): boolean;
|
|
990
|
+
declare function V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueFromJSON(json: any): V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValue;
|
|
991
|
+
declare function V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValue;
|
|
992
|
+
declare function V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueToJSON(value?: V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValue | null): any;
|
|
703
993
|
|
|
704
994
|
/**
|
|
705
995
|
*
|
|
@@ -760,6 +1050,13 @@ interface V1beta1NodeNetworkConfigurationEnactmentStatus {
|
|
|
760
1050
|
*/
|
|
761
1051
|
policyGeneration?: any | null;
|
|
762
1052
|
}
|
|
1053
|
+
/**
|
|
1054
|
+
* Check if a given object implements the V1beta1NodeNetworkConfigurationEnactmentStatus interface.
|
|
1055
|
+
*/
|
|
1056
|
+
declare function instanceOfV1beta1NodeNetworkConfigurationEnactmentStatus(_value: object): boolean;
|
|
1057
|
+
declare function V1beta1NodeNetworkConfigurationEnactmentStatusFromJSON(json: any): V1beta1NodeNetworkConfigurationEnactmentStatus;
|
|
1058
|
+
declare function V1beta1NodeNetworkConfigurationEnactmentStatusFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1beta1NodeNetworkConfigurationEnactmentStatus;
|
|
1059
|
+
declare function V1beta1NodeNetworkConfigurationEnactmentStatusToJSON(value?: V1beta1NodeNetworkConfigurationEnactmentStatus | null): any;
|
|
763
1060
|
|
|
764
1061
|
/**
|
|
765
1062
|
*
|
|
@@ -811,6 +1108,13 @@ interface V1beta1NodeNetworkConfigurationEnactment {
|
|
|
811
1108
|
*/
|
|
812
1109
|
status?: V1beta1NodeNetworkConfigurationEnactmentStatus;
|
|
813
1110
|
}
|
|
1111
|
+
/**
|
|
1112
|
+
* Check if a given object implements the V1beta1NodeNetworkConfigurationEnactment interface.
|
|
1113
|
+
*/
|
|
1114
|
+
declare function instanceOfV1beta1NodeNetworkConfigurationEnactment(_value: object): boolean;
|
|
1115
|
+
declare function V1beta1NodeNetworkConfigurationEnactmentFromJSON(json: any): V1beta1NodeNetworkConfigurationEnactment;
|
|
1116
|
+
declare function V1beta1NodeNetworkConfigurationEnactmentFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1beta1NodeNetworkConfigurationEnactment;
|
|
1117
|
+
declare function V1beta1NodeNetworkConfigurationEnactmentToJSON(value?: V1beta1NodeNetworkConfigurationEnactment | null): any;
|
|
814
1118
|
|
|
815
1119
|
/**
|
|
816
1120
|
*
|
|
@@ -866,6 +1170,13 @@ interface V1beta1NodeNetworkStateStatus {
|
|
|
866
1170
|
*/
|
|
867
1171
|
lastSuccessfulUpdateTime?: any | null;
|
|
868
1172
|
}
|
|
1173
|
+
/**
|
|
1174
|
+
* Check if a given object implements the V1beta1NodeNetworkStateStatus interface.
|
|
1175
|
+
*/
|
|
1176
|
+
declare function instanceOfV1beta1NodeNetworkStateStatus(_value: object): boolean;
|
|
1177
|
+
declare function V1beta1NodeNetworkStateStatusFromJSON(json: any): V1beta1NodeNetworkStateStatus;
|
|
1178
|
+
declare function V1beta1NodeNetworkStateStatusFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1beta1NodeNetworkStateStatus;
|
|
1179
|
+
declare function V1beta1NodeNetworkStateStatusToJSON(value?: V1beta1NodeNetworkStateStatus | null): any;
|
|
869
1180
|
|
|
870
1181
|
/**
|
|
871
1182
|
*
|
|
@@ -917,6 +1228,13 @@ interface V1beta1NodeNetworkState {
|
|
|
917
1228
|
*/
|
|
918
1229
|
status?: V1beta1NodeNetworkStateStatus;
|
|
919
1230
|
}
|
|
1231
|
+
/**
|
|
1232
|
+
* Check if a given object implements the V1beta1NodeNetworkState interface.
|
|
1233
|
+
*/
|
|
1234
|
+
declare function instanceOfV1beta1NodeNetworkState(_value: object): boolean;
|
|
1235
|
+
declare function V1beta1NodeNetworkStateFromJSON(json: any): V1beta1NodeNetworkState;
|
|
1236
|
+
declare function V1beta1NodeNetworkStateFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1beta1NodeNetworkState;
|
|
1237
|
+
declare function V1beta1NodeNetworkStateToJSON(value?: V1beta1NodeNetworkState | null): any;
|
|
920
1238
|
|
|
921
1239
|
/**
|
|
922
1240
|
*
|
|
@@ -974,6 +1292,13 @@ interface V1beta1NMState {
|
|
|
974
1292
|
*/
|
|
975
1293
|
status?: V1NMStateStatus;
|
|
976
1294
|
}
|
|
1295
|
+
/**
|
|
1296
|
+
* Check if a given object implements the V1beta1NMState interface.
|
|
1297
|
+
*/
|
|
1298
|
+
declare function instanceOfV1beta1NMState(_value: object): boolean;
|
|
1299
|
+
declare function V1beta1NMStateFromJSON(json: any): V1beta1NMState;
|
|
1300
|
+
declare function V1beta1NMStateFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1beta1NMState;
|
|
1301
|
+
declare function V1beta1NMStateToJSON(value?: V1beta1NMState | null): any;
|
|
977
1302
|
|
|
978
1303
|
/**
|
|
979
1304
|
*
|
|
@@ -1031,5 +1356,367 @@ interface V1NodeNetworkConfigurationPolicy {
|
|
|
1031
1356
|
*/
|
|
1032
1357
|
status?: V1NodeNetworkConfigurationPolicyStatus;
|
|
1033
1358
|
}
|
|
1359
|
+
/**
|
|
1360
|
+
* Check if a given object implements the V1NodeNetworkConfigurationPolicy interface.
|
|
1361
|
+
*/
|
|
1362
|
+
declare function instanceOfV1NodeNetworkConfigurationPolicy(_value: object): boolean;
|
|
1363
|
+
declare function V1NodeNetworkConfigurationPolicyFromJSON(json: any): V1NodeNetworkConfigurationPolicy;
|
|
1364
|
+
declare function V1NodeNetworkConfigurationPolicyFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1NodeNetworkConfigurationPolicy;
|
|
1365
|
+
declare function V1NodeNetworkConfigurationPolicyToJSON(value?: V1NodeNetworkConfigurationPolicy | null): any;
|
|
1366
|
+
|
|
1367
|
+
interface NodeNetworkConfigurationInterfaceBridgePort {
|
|
1368
|
+
'link-aggregation'?: {
|
|
1369
|
+
mode?: string;
|
|
1370
|
+
port?: NodeNetworkConfigurationInterfaceBridgePort[];
|
|
1371
|
+
};
|
|
1372
|
+
name: string;
|
|
1373
|
+
'stp-hairpin-mode'?: boolean;
|
|
1374
|
+
'stp-path-cost'?: number;
|
|
1375
|
+
'stp-priority'?: number;
|
|
1376
|
+
vlan?: {
|
|
1377
|
+
mode?: string;
|
|
1378
|
+
};
|
|
1379
|
+
}
|
|
1380
|
+
|
|
1381
|
+
interface NodeNetworkConfigurationInterfaceBridge {
|
|
1382
|
+
port?: NodeNetworkConfigurationInterfaceBridgePort[];
|
|
1383
|
+
['allow-extra-patch-ports']?: boolean;
|
|
1384
|
+
options?: {
|
|
1385
|
+
/** The mask of group address to forward. */
|
|
1386
|
+
'group-forward-mask'?: number;
|
|
1387
|
+
/** The Spanning Tree Protocol (STP) maximum message age, in seconds. */
|
|
1388
|
+
'mac-ageing-time'?: number;
|
|
1389
|
+
/** Whether IGMP snooping is enabled for this bridge. */
|
|
1390
|
+
'multicast-snooping'?: boolean;
|
|
1391
|
+
stp?: {
|
|
1392
|
+
/** Whether Spanning Tree Protocol (STP) is enabled for this bridge. */
|
|
1393
|
+
enabled: boolean;
|
|
1394
|
+
/** The Spanning Tree Protocol (STP) forwarding delay, in seconds. */
|
|
1395
|
+
'forward-delay'?: number;
|
|
1396
|
+
/** The Spanning Tree Protocol (STP) hello time, in seconds. */
|
|
1397
|
+
'hello-time'?: number;
|
|
1398
|
+
/** The Spanning Tree Protocol (STP) maximum message age, in seconds. */
|
|
1399
|
+
'max-age'?: number;
|
|
1400
|
+
/** Sets the Spanning Tree Protocol (STP) priority for this bridge. Lower values are “better”; the lowest priority bridge will be elected the root bridge. */
|
|
1401
|
+
priority?: number;
|
|
1402
|
+
};
|
|
1403
|
+
};
|
|
1404
|
+
}
|
|
1405
|
+
|
|
1406
|
+
interface NodeNetworkConfigurationInterfaceEthernet {
|
|
1407
|
+
/**
|
|
1408
|
+
* The speed property is the integer speed in Mbps.
|
|
1409
|
+
* This property is ignored when applying if auto-negotiation: true.
|
|
1410
|
+
*/
|
|
1411
|
+
speed: number;
|
|
1412
|
+
/**
|
|
1413
|
+
* The duplex property supports:
|
|
1414
|
+
* - full
|
|
1415
|
+
* - half
|
|
1416
|
+
* This property is ignored when applying if auto-negotiation: true.
|
|
1417
|
+
*/
|
|
1418
|
+
duplex: 'full' | 'half';
|
|
1419
|
+
/**
|
|
1420
|
+
* The auto-negotiation property is the boolean switch for enabling auto negotiation on speed and duplex.
|
|
1421
|
+
* Default to true.
|
|
1422
|
+
*/
|
|
1423
|
+
'auto-negotiation': boolean;
|
|
1424
|
+
}
|
|
1425
|
+
|
|
1426
|
+
/** The ethtool section of interface holds the ethtool settings of network cards, including these subsections. */
|
|
1427
|
+
interface NodeNetworkConfigurationInterfaceEthtool {
|
|
1428
|
+
pause?: {
|
|
1429
|
+
rx: boolean;
|
|
1430
|
+
tx: boolean;
|
|
1431
|
+
autoneg: boolean;
|
|
1432
|
+
};
|
|
1433
|
+
feature?: {
|
|
1434
|
+
[key in string]: boolean;
|
|
1435
|
+
};
|
|
1436
|
+
coalesce?: {
|
|
1437
|
+
['adaptive-rx']?: boolean;
|
|
1438
|
+
['adaptive-tx']?: boolean;
|
|
1439
|
+
['pkt-rate-high']?: number;
|
|
1440
|
+
['pkt-rate-low']?: number;
|
|
1441
|
+
['rx-frames']?: number;
|
|
1442
|
+
['rx-frames-high']?: number;
|
|
1443
|
+
['rx-frames-low']?: number;
|
|
1444
|
+
['rx-usecs']?: number;
|
|
1445
|
+
['rx-usecs-high']?: number;
|
|
1446
|
+
['rx-usecs-irq']?: number;
|
|
1447
|
+
['rx-usecs-low']?: number;
|
|
1448
|
+
['sample-interval']?: number;
|
|
1449
|
+
['stats-block-usecs']?: number;
|
|
1450
|
+
['tx-frames']?: number;
|
|
1451
|
+
['tx-frames-high']?: number;
|
|
1452
|
+
['tx-frames-irq']?: number;
|
|
1453
|
+
['tx-frames-low']?: number;
|
|
1454
|
+
['tx-usecs']?: number;
|
|
1455
|
+
['tx-usecs-high']?: number;
|
|
1456
|
+
['tx-usecs-irq']?: number;
|
|
1457
|
+
['tx-usecs-low']?: number;
|
|
1458
|
+
};
|
|
1459
|
+
ring?: {
|
|
1460
|
+
rx?: number;
|
|
1461
|
+
['rx-max']?: number;
|
|
1462
|
+
['rx-jumbo']?: number;
|
|
1463
|
+
['rx-jumbo-max']?: number;
|
|
1464
|
+
['rx-mini']?: number;
|
|
1465
|
+
['rx-mini-max']?: number;
|
|
1466
|
+
tx?: number;
|
|
1467
|
+
['tx-max']?: number;
|
|
1468
|
+
};
|
|
1469
|
+
}
|
|
1470
|
+
|
|
1471
|
+
interface NodeNetworkConfigurationInterfaceIPV4Address {
|
|
1472
|
+
ip: string;
|
|
1473
|
+
'prefix-length'?: number;
|
|
1474
|
+
'mptcp-flags'?: string[];
|
|
1475
|
+
}
|
|
1476
|
+
|
|
1477
|
+
declare const AUTO_DNS = "auto-dns";
|
|
1478
|
+
declare const AUTO_ROUTES = "auto-routes";
|
|
1479
|
+
declare const AUTO_GATEWAY = "auto-gateway";
|
|
1480
|
+
interface NodeNetworkConfigurationInterfaceIPV4 {
|
|
1481
|
+
/**
|
|
1482
|
+
* The enabled property is the boolean switch to enable and disable the whole IP stack.
|
|
1483
|
+
* For IPv6 with enabled: false, the link local address will also be removed from this interface.
|
|
1484
|
+
* If explicitly set to enabled: false, all other IP parameters will be ignored and will not fail the verification
|
|
1485
|
+
*/
|
|
1486
|
+
enabled: boolean;
|
|
1487
|
+
/** The dhcp property is the boolean switch for DHCP on specified interface. */
|
|
1488
|
+
dhcp?: boolean;
|
|
1489
|
+
/**
|
|
1490
|
+
* The auto-routes property is the boolean switch for whether apply routes entries(including default gateway) retried from dynamic configuration method.
|
|
1491
|
+
* Set to true by default unless current state set to false explicitly.
|
|
1492
|
+
*/
|
|
1493
|
+
[AUTO_ROUTES]?: boolean;
|
|
1494
|
+
/**
|
|
1495
|
+
* The auto-routes property is the boolean switch for whether apply default gateway retried from dynamic configuration method.
|
|
1496
|
+
* Set to true by default unless current state set to false explicitly.
|
|
1497
|
+
*/
|
|
1498
|
+
[AUTO_GATEWAY]?: boolean;
|
|
1499
|
+
/**
|
|
1500
|
+
* The auto-dns property is the boolean switch for whether apply DNS configurations retried from dynamic configuration method.
|
|
1501
|
+
* Set to true by default unless current state set to false explicitly.
|
|
1502
|
+
*/
|
|
1503
|
+
[AUTO_DNS]?: boolean;
|
|
1504
|
+
/**
|
|
1505
|
+
* The auto-route-table-id property is the integer for route table ID of the routes retried from dynamic configuration method.
|
|
1506
|
+
* If not mentioned in desire state or set to 0, nmstate will use the main table ID 254.
|
|
1507
|
+
*/
|
|
1508
|
+
'auto-route-table-id'?: number;
|
|
1509
|
+
/**
|
|
1510
|
+
* The auto-route-metric property is the integer for route metric of the routes retried from dynamic configuration method.
|
|
1511
|
+
* If not mentioned in desire state or set to -1, nmstate will let network backend to determine the metric.
|
|
1512
|
+
*/
|
|
1513
|
+
'auto-route-metric'?: number;
|
|
1514
|
+
/** when dhcp is true, this property is ignored */
|
|
1515
|
+
address?: NodeNetworkConfigurationInterfaceIPV4Address[];
|
|
1516
|
+
}
|
|
1517
|
+
|
|
1518
|
+
interface NodeNetworkConfigurationInterfaceIPV6Address {
|
|
1519
|
+
ip: string;
|
|
1520
|
+
'prefix-length'?: number;
|
|
1521
|
+
'mptcp-flags'?: string[];
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
interface NodeNetworkConfigurationInterfaceIPV6 {
|
|
1525
|
+
/**
|
|
1526
|
+
* The enabled property is the boolean switch to enable and disable the whole IP stack.
|
|
1527
|
+
* For IPv6 with enabled: false, the link local address will also be removed from this interface.
|
|
1528
|
+
* If explicitly set to enabled: false, all other IP parameters will be ignored and will not fail the verification
|
|
1529
|
+
*/
|
|
1530
|
+
enabled?: boolean;
|
|
1531
|
+
/** The dhcp property is the boolean switch for DHCP on specified interface. */
|
|
1532
|
+
dhcp?: boolean;
|
|
1533
|
+
/** The autoconf property is the boolean switch for IPv6 autoconf via Router Advertisement (RA). */
|
|
1534
|
+
autoconf?: boolean;
|
|
1535
|
+
/**
|
|
1536
|
+
* The auto-routes property is the boolean switch for whether apply routes entries(including default gateway) retried from dynamic configuration method.
|
|
1537
|
+
* Set to true by default unless current state set to false explicitly.
|
|
1538
|
+
*/
|
|
1539
|
+
'auto-routes'?: boolean;
|
|
1540
|
+
/**
|
|
1541
|
+
* The auto-routes property is the boolean switch for whether apply default gateway retried from dynamic configuration method.
|
|
1542
|
+
* Set to true by default unless current state set to false explicitly.
|
|
1543
|
+
*/
|
|
1544
|
+
'auto-gateway'?: boolean;
|
|
1545
|
+
/**
|
|
1546
|
+
* The auto-dns property is the boolean switch for whether apply DNS configurations retried from dynamic configuration method.
|
|
1547
|
+
* Set to true by default unless current state set to false explicitly.
|
|
1548
|
+
*/
|
|
1549
|
+
'auto-dns'?: boolean;
|
|
1550
|
+
/**
|
|
1551
|
+
* The auto-route-table-id property is the integer for route table ID of the routes retried from dynamic configuration method.
|
|
1552
|
+
* If not mentioned in desire state or set to 0, nmstate will use the main table ID 254.
|
|
1553
|
+
*/
|
|
1554
|
+
'auto-route-table-id'?: number;
|
|
1555
|
+
/**
|
|
1556
|
+
* The auto-route-metric property is the integer for route metric of the routes retried from dynamic configuration method.
|
|
1557
|
+
* If not mentioned in desire state or set to -1, nmstate will let network backend to determine the metric.
|
|
1558
|
+
*/
|
|
1559
|
+
'auto-route-metric'?: number;
|
|
1560
|
+
/**
|
|
1561
|
+
* When dhcp or autoconf are true, the address defined in this property is also ignored
|
|
1562
|
+
*/
|
|
1563
|
+
address?: NodeNetworkConfigurationInterfaceIPV6Address[];
|
|
1564
|
+
}
|
|
1565
|
+
|
|
1566
|
+
declare enum NodeNetworkConfigurationInterfaceBondMode {
|
|
1567
|
+
BALANCE_RR = "balance-rr",
|
|
1568
|
+
ACTIVE_BACKUP = "active-backup",
|
|
1569
|
+
BALANCE_XOR = "balance-xor",
|
|
1570
|
+
BROADCAST = "broadcast",
|
|
1571
|
+
'802.3AD' = "802.3ad",
|
|
1572
|
+
BALANCE_TLB = "balance-tlb",
|
|
1573
|
+
BALANCE_ALB = "balance-alb"
|
|
1574
|
+
}
|
|
1575
|
+
|
|
1576
|
+
/**
|
|
1577
|
+
* Please check kernel document for their allowed value and combinations.
|
|
1578
|
+
* The balance_slb is not kernel option of bond, but user space configuration, only supported by nmstate 2.2.1+, NetworkManager 1.41+ on patched linux kernel.
|
|
1579
|
+
* The verification process of nmstate will ignore bond option miss-match.
|
|
1580
|
+
*/
|
|
1581
|
+
interface NodeNetworkConfigurationInterfaceLinkAggregationOptions {
|
|
1582
|
+
all_slaves_active?: string;
|
|
1583
|
+
arp_all_targets?: string;
|
|
1584
|
+
arp_interval?: number;
|
|
1585
|
+
arp_validate?: string;
|
|
1586
|
+
downdelay?: number;
|
|
1587
|
+
lp_interval?: number;
|
|
1588
|
+
miimon?: number;
|
|
1589
|
+
min_links?: number;
|
|
1590
|
+
packets_per_slave?: number;
|
|
1591
|
+
primary_reselect?: string;
|
|
1592
|
+
resend_igmp?: number;
|
|
1593
|
+
updelay?: number;
|
|
1594
|
+
use_carrier?: true;
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
interface NodeNetworkConfigurationInterfaceLinkAggregation {
|
|
1598
|
+
/** The bond mode in kernel. Possible values are:
|
|
1599
|
+
*
|
|
1600
|
+
* BondMode.ROUND_ROBIN
|
|
1601
|
+
* BondMode.ACTIVE_BACKUP
|
|
1602
|
+
* BondMode.XOR
|
|
1603
|
+
* BondMode.BROADCAST
|
|
1604
|
+
* BondMode.LACP
|
|
1605
|
+
* BondMode.TLB
|
|
1606
|
+
* BondMode.ALB
|
|
1607
|
+
* Please refer to kernel document for detail.
|
|
1608
|
+
*
|
|
1609
|
+
* When changing bond mode, the Bond.OPTIONS_SUBTREE will not merge from current state. User is required to provide full desire bond options when switching bond mode.
|
|
1610
|
+
*/
|
|
1611
|
+
mode: NodeNetworkConfigurationInterfaceBondMode;
|
|
1612
|
+
/** The names of bond port interfaces.
|
|
1613
|
+
* This property does not support partial editing, full list of ports is required in desired state.
|
|
1614
|
+
* If not defined in desire state, current status will be preserved.
|
|
1615
|
+
*/
|
|
1616
|
+
port: string[];
|
|
1617
|
+
/** Set to {} will revert all bond options back to kernel defaults.
|
|
1618
|
+
* Nmstate will not perform verification on whether desired bond options is applied to kernel due to complexity of it, please verify the bond options by yourself. */
|
|
1619
|
+
options?: NodeNetworkConfigurationInterfaceLinkAggregationOptions;
|
|
1620
|
+
}
|
|
1621
|
+
|
|
1622
|
+
declare const IEE_802_1_VLANS = "ieee-802-1-vlans";
|
|
1623
|
+
declare const CHASSIS_ID = "chassis-id";
|
|
1624
|
+
declare const CHASSIS_ID_TYPE = "chassis-id-type";
|
|
1625
|
+
declare const PORT_ID = "port-id";
|
|
1626
|
+
declare const PORT_ID_TYPE = "port-id-type";
|
|
1627
|
+
declare const SYSTEM_NAME = "system-name";
|
|
1628
|
+
declare const SYSTEM_DESCRIPTION = "system-description";
|
|
1629
|
+
declare const SYSTEM_CAPABILITIES = "system-capabilities";
|
|
1630
|
+
declare const MANAGEMENT_ADDRESSES = "management-addresses";
|
|
1631
|
+
declare const ADDRESS_SUBTYPE = "address-subtype";
|
|
1632
|
+
declare const INTERFACE_NUMBER = "interface-number";
|
|
1633
|
+
declare const INTERFACE_NUMBER_SUBTYPE = "interface-number-subtype";
|
|
1634
|
+
declare type NodeNetworkConfigurationInterfaceLLDPNeighbor = {
|
|
1635
|
+
type?: number;
|
|
1636
|
+
subtype?: number;
|
|
1637
|
+
oui?: string;
|
|
1638
|
+
[CHASSIS_ID]?: string;
|
|
1639
|
+
[CHASSIS_ID_TYPE]?: number;
|
|
1640
|
+
_description?: string;
|
|
1641
|
+
[PORT_ID]?: string;
|
|
1642
|
+
[PORT_ID_TYPE]?: number;
|
|
1643
|
+
[SYSTEM_NAME]?: string;
|
|
1644
|
+
[SYSTEM_DESCRIPTION]?: string;
|
|
1645
|
+
[SYSTEM_CAPABILITIES]?: string[];
|
|
1646
|
+
[MANAGEMENT_ADDRESSES]?: {
|
|
1647
|
+
address?: string;
|
|
1648
|
+
[ADDRESS_SUBTYPE]?: string;
|
|
1649
|
+
[INTERFACE_NUMBER]?: number;
|
|
1650
|
+
[INTERFACE_NUMBER_SUBTYPE]?: number;
|
|
1651
|
+
}[];
|
|
1652
|
+
[IEE_802_1_VLANS]?: {
|
|
1653
|
+
vid?: number;
|
|
1654
|
+
name?: string;
|
|
1655
|
+
}[];
|
|
1656
|
+
}[];
|
|
1657
|
+
interface NodeNetworkConfigurationInterfaceLLDP {
|
|
1658
|
+
enabled: boolean;
|
|
1659
|
+
neighbors: NodeNetworkConfigurationInterfaceLLDPNeighbor[];
|
|
1660
|
+
}
|
|
1661
|
+
|
|
1662
|
+
declare enum InterfaceType {
|
|
1663
|
+
ETHERNET = "ethernet",
|
|
1664
|
+
BOND = "bond",
|
|
1665
|
+
LINUX_BRIDGE = "linux-bridge",
|
|
1666
|
+
OVS_BRIDGE = "ovs-bridge",
|
|
1667
|
+
OVS_PORT = "ovs-port",
|
|
1668
|
+
OVS_INTERFACE = "ovs-interface",
|
|
1669
|
+
VLAN = "vlan",
|
|
1670
|
+
VXLAN = "vxlan",
|
|
1671
|
+
VRF = "vrf",
|
|
1672
|
+
INFINIBAND = "infiniband",
|
|
1673
|
+
MAC_VLAN = "mac-vlan",
|
|
1674
|
+
MAC_VTAP = "mac-vtap",
|
|
1675
|
+
VETH = "veth",
|
|
1676
|
+
LOOPBACK = "loopback"
|
|
1677
|
+
}
|
|
1678
|
+
|
|
1679
|
+
interface NodeNetworkConfigurationInterface {
|
|
1680
|
+
/** The kernel name of the interface. */
|
|
1681
|
+
name: string;
|
|
1682
|
+
/** The description of the interface. */
|
|
1683
|
+
description?: string;
|
|
1684
|
+
/** The interface state. */
|
|
1685
|
+
state: 'UP' | 'DOWN' | 'up' | 'down' | 'absent' | 'ABSENT';
|
|
1686
|
+
/** The interface type. */
|
|
1687
|
+
type: InterfaceType;
|
|
1688
|
+
/** The maximum transmission unit of interface. */
|
|
1689
|
+
mtu?: number;
|
|
1690
|
+
/** The MAC address of interface. Format EA:60:E4:08:17:F1 */
|
|
1691
|
+
'mac-address'?: string;
|
|
1692
|
+
/**
|
|
1693
|
+
* Only valid for InterfaceType.BOND, InterfaceType.LINUX_BRIDGE and InterfaceType.OVS_INTERFACE. The Interface.COPY_MAC_FROM could hold the name of port which you want this controller interface to use the same MAC with.
|
|
1694
|
+
* The MAC address is read from permanent hardware MAC address and fallback to current MAC address.
|
|
1695
|
+
*/
|
|
1696
|
+
'copy-mac-from'?: string;
|
|
1697
|
+
/** The Interface.IPV4 property holds the IPv4 stack information in a dictionary. */
|
|
1698
|
+
ipv4?: NodeNetworkConfigurationInterfaceIPV4;
|
|
1699
|
+
/** The Interface.IPV6 property holds the IPv6 stack information in a dictionary. */
|
|
1700
|
+
ipv6?: NodeNetworkConfigurationInterfaceIPV6;
|
|
1701
|
+
'link-aggregation'?: NodeNetworkConfigurationInterfaceLinkAggregation;
|
|
1702
|
+
bridge?: NodeNetworkConfigurationInterfaceBridge;
|
|
1703
|
+
ethernet?: NodeNetworkConfigurationInterfaceEthernet;
|
|
1704
|
+
ethtool?: NodeNetworkConfigurationInterfaceEthtool;
|
|
1705
|
+
lldp?: NodeNetworkConfigurationInterfaceLLDP;
|
|
1706
|
+
vlan?: {
|
|
1707
|
+
id: number;
|
|
1708
|
+
'base-iface': string;
|
|
1709
|
+
protocol?: string;
|
|
1710
|
+
};
|
|
1711
|
+
patch?: {
|
|
1712
|
+
peer?: string;
|
|
1713
|
+
};
|
|
1714
|
+
}
|
|
1715
|
+
|
|
1716
|
+
declare type OVNBridgeMapping = {
|
|
1717
|
+
bridge: string;
|
|
1718
|
+
localnet: string;
|
|
1719
|
+
state: string;
|
|
1720
|
+
};
|
|
1034
1721
|
|
|
1035
|
-
export type
|
|
1722
|
+
export { ADDRESS_SUBTYPE, AUTO_DNS, AUTO_GATEWAY, AUTO_ROUTES, type ApiResponse, BASE_PATH, BaseAPI, BlobApiResponse, CHASSIS_ID, CHASSIS_ID_TYPE, COLLECTION_FORMATS, Configuration, type ConfigurationParameters, type Consume, DefaultConfig, type ErrorContext, type FetchAPI, FetchError, type FetchParams, type HTTPBody, type HTTPHeaders, type HTTPMethod, type HTTPQuery, type HTTPRequestInit, IEE_802_1_VLANS, INTERFACE_NUMBER, INTERFACE_NUMBER_SUBTYPE, type InitOverrideFunction, InterfaceType, JSONApiResponse, type Json, MANAGEMENT_ADDRESSES, type Middleware, type ModelPropertyNaming, type NodeNetworkConfigurationInterface, NodeNetworkConfigurationInterfaceBondMode, type NodeNetworkConfigurationInterfaceBridge, type NodeNetworkConfigurationInterfaceBridgePort, type NodeNetworkConfigurationInterfaceEthernet, type NodeNetworkConfigurationInterfaceEthtool, type NodeNetworkConfigurationInterfaceIPV4, type NodeNetworkConfigurationInterfaceIPV4Address, type NodeNetworkConfigurationInterfaceIPV6, type NodeNetworkConfigurationInterfaceIPV6Address, type NodeNetworkConfigurationInterfaceLLDP, type NodeNetworkConfigurationInterfaceLLDPNeighbor, type NodeNetworkConfigurationInterfaceLinkAggregation, type NodeNetworkConfigurationInterfaceLinkAggregationOptions, type OVNBridgeMapping, PORT_ID, PORT_ID_TYPE, type RequestContext, type RequestOpts, RequiredError, type ResponseContext, ResponseError, type ResponseTransformer, SYSTEM_CAPABILITIES, SYSTEM_DESCRIPTION, SYSTEM_NAME, TextApiResponse, type V1NMState, V1NMStateFromJSON, V1NMStateFromJSONTyped, type V1NMStateSpec, type V1NMStateSpecAffinity, V1NMStateSpecAffinityFromJSON, V1NMStateSpecAffinityFromJSONTyped, type V1NMStateSpecAffinityNodeAffinity, V1NMStateSpecAffinityNodeAffinityFromJSON, V1NMStateSpecAffinityNodeAffinityFromJSONTyped, type V1NMStateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution, V1NMStateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionFromJSON, V1NMStateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionFromJSONTyped, V1NMStateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecutionToJSON, V1NMStateSpecAffinityNodeAffinityToJSON, type V1NMStateSpecAffinityPodAffinity, V1NMStateSpecAffinityPodAffinityFromJSON, V1NMStateSpecAffinityPodAffinityFromJSONTyped, V1NMStateSpecAffinityPodAffinityToJSON, type V1NMStateSpecAffinityPodAntiAffinity, V1NMStateSpecAffinityPodAntiAffinityFromJSON, V1NMStateSpecAffinityPodAntiAffinityFromJSONTyped, V1NMStateSpecAffinityPodAntiAffinityToJSON, V1NMStateSpecAffinityToJSON, V1NMStateSpecFromJSON, V1NMStateSpecFromJSONTyped, type V1NMStateSpecInfraAffinity, V1NMStateSpecInfraAffinityFromJSON, V1NMStateSpecInfraAffinityFromJSONTyped, V1NMStateSpecInfraAffinityToJSON, type V1NMStateSpecProbeConfiguration, type V1NMStateSpecProbeConfigurationDns, V1NMStateSpecProbeConfigurationDnsFromJSON, V1NMStateSpecProbeConfigurationDnsFromJSONTyped, V1NMStateSpecProbeConfigurationDnsToJSON, V1NMStateSpecProbeConfigurationFromJSON, V1NMStateSpecProbeConfigurationFromJSONTyped, V1NMStateSpecProbeConfigurationToJSON, type V1NMStateSpecSelfSignConfiguration, V1NMStateSpecSelfSignConfigurationFromJSON, V1NMStateSpecSelfSignConfigurationFromJSONTyped, V1NMStateSpecSelfSignConfigurationToJSON, V1NMStateSpecToJSON, type V1NMStateStatus, V1NMStateStatusFromJSON, V1NMStateStatusFromJSONTyped, V1NMStateStatusToJSON, V1NMStateToJSON, type V1NodeNetworkConfigurationPolicy, V1NodeNetworkConfigurationPolicyFromJSON, V1NodeNetworkConfigurationPolicyFromJSONTyped, type V1NodeNetworkConfigurationPolicySpec, V1NodeNetworkConfigurationPolicySpecFromJSON, V1NodeNetworkConfigurationPolicySpecFromJSONTyped, V1NodeNetworkConfigurationPolicySpecToJSON, type V1NodeNetworkConfigurationPolicyStatus, V1NodeNetworkConfigurationPolicyStatusFromJSON, V1NodeNetworkConfigurationPolicyStatusFromJSONTyped, V1NodeNetworkConfigurationPolicyStatusToJSON, V1NodeNetworkConfigurationPolicyToJSON, type V1beta1NMState, V1beta1NMStateFromJSON, V1beta1NMStateFromJSONTyped, V1beta1NMStateToJSON, type V1beta1NodeNetworkConfigurationEnactment, V1beta1NodeNetworkConfigurationEnactmentFromJSON, V1beta1NodeNetworkConfigurationEnactmentFromJSONTyped, type V1beta1NodeNetworkConfigurationEnactmentStatus, type V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValue, V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueFromJSON, V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueFromJSONTyped, type V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueMetaInfo, V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueMetaInfoFromJSON, V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueMetaInfoFromJSONTyped, V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueMetaInfoToJSON, V1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueToJSON, V1beta1NodeNetworkConfigurationEnactmentStatusFromJSON, V1beta1NodeNetworkConfigurationEnactmentStatusFromJSONTyped, V1beta1NodeNetworkConfigurationEnactmentStatusToJSON, V1beta1NodeNetworkConfigurationEnactmentToJSON, type V1beta1NodeNetworkConfigurationPolicy, V1beta1NodeNetworkConfigurationPolicyFromJSON, V1beta1NodeNetworkConfigurationPolicyFromJSONTyped, V1beta1NodeNetworkConfigurationPolicyToJSON, type V1beta1NodeNetworkState, V1beta1NodeNetworkStateFromJSON, V1beta1NodeNetworkStateFromJSONTyped, type V1beta1NodeNetworkStateStatus, V1beta1NodeNetworkStateStatusFromJSON, V1beta1NodeNetworkStateStatusFromJSONTyped, V1beta1NodeNetworkStateStatusToJSON, V1beta1NodeNetworkStateToJSON, VoidApiResponse, canConsumeForm, exists, instanceOfV1NMState, instanceOfV1NMStateSpec, instanceOfV1NMStateSpecAffinity, instanceOfV1NMStateSpecAffinityNodeAffinity, instanceOfV1NMStateSpecAffinityNodeAffinityRequiredDuringSchedulingIgnoredDuringExecution, instanceOfV1NMStateSpecAffinityPodAffinity, instanceOfV1NMStateSpecAffinityPodAntiAffinity, instanceOfV1NMStateSpecInfraAffinity, instanceOfV1NMStateSpecProbeConfiguration, instanceOfV1NMStateSpecProbeConfigurationDns, instanceOfV1NMStateSpecSelfSignConfiguration, instanceOfV1NMStateStatus, instanceOfV1NodeNetworkConfigurationPolicy, instanceOfV1NodeNetworkConfigurationPolicySpec, instanceOfV1NodeNetworkConfigurationPolicyStatus, instanceOfV1beta1NMState, instanceOfV1beta1NodeNetworkConfigurationEnactment, instanceOfV1beta1NodeNetworkConfigurationEnactmentStatus, instanceOfV1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValue, instanceOfV1beta1NodeNetworkConfigurationEnactmentStatusCapturedStatesValueMetaInfo, instanceOfV1beta1NodeNetworkConfigurationPolicy, instanceOfV1beta1NodeNetworkState, instanceOfV1beta1NodeNetworkStateStatus, mapValues, querystring };
|