Skip to content

Commit fc76995

Browse files
committed
docs: Update network examples
The 'network' filter has been removed in API v1alpha7. Update our docs to reflect this. Signed-off-by: Stephen Finucane <[email protected]>
1 parent 38f28da commit fc76995

File tree

1 file changed

+37
-34
lines changed

1 file changed

+37
-34
lines changed

docs/book/src/clusteropenstack/configuration.md

Lines changed: 37 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -305,9 +305,9 @@ metadata:
305305
spec:
306306
template:
307307
spec:
308-
networks:
309-
- filter:
310-
name: <network-name>
308+
ports:
309+
- network:
310+
name: <network-name>
311311
```
312312

313313
## Multiple Networks
@@ -323,12 +323,15 @@ metadata:
323323
spec:
324324
template:
325325
spec:
326-
networks:
327-
- filter:
328-
name: myNetwork
329-
tags: myTag
330-
- uuid: your_network_id
331-
- subnet_id: your_subnet_id
326+
ports:
327+
- network:
328+
name: myNetwork
329+
tags: myTag
330+
- network:
331+
id: your_network_id
332+
- fixedIPs:
333+
- subnet:
334+
id: your_subnet_id
332335
```
333336

334337
## Subnet Filters
@@ -344,12 +347,12 @@ metadata:
344347
spec:
345348
template:
346349
spec:
347-
networks:
348-
- filter:
349-
name: <network-name>
350-
subnets:
351-
- filter:
352-
name: <subnet-name>
350+
ports:
351+
- network:
352+
name: <network-name>
353+
fixedIPs:
354+
- subnet:
355+
name: <subnet-name>
353356
```
354357

355358
## Ports
@@ -366,25 +369,25 @@ spec:
366369
template:
367370
spec:
368371
ports:
369-
- network:
370-
id: <your-network-id>
371-
fixedIPs:
372-
- subnet:
373-
id: <your-subnet-id>
374-
ipAddress: <your-fixed-ip>
375-
- subnet:
376-
name: <your-subnet-name>
377-
tags:
378-
- tag1
379-
- tag2
380-
nameSuffix: <your-port-name>
381-
description: <your-custom-port-description>
382-
vnicType: normal
383-
securityGroups:
384-
- <your-security-group-id>
385-
profile:
386-
capabilities:
387-
- <capability>
372+
- network:
373+
id: <your-network-id>
374+
fixedIPs:
375+
- subnet:
376+
id: <your-subnet-id>
377+
ipAddress: <your-fixed-ip>
378+
- subnet:
379+
name: <your-subnet-name>
380+
tags:
381+
- tag1
382+
- tag2
383+
nameSuffix: <your-port-name>
384+
description: <your-custom-port-description>
385+
vnicType: normal
386+
securityGroups:
387+
- <your-security-group-id>
388+
profile:
389+
capabilities:
390+
- <capability>
388391
```
389392

390393
Any such ports are created in addition to ports used for connections to networks or subnets.

0 commit comments

Comments
 (0)