Skip to content

Commit

Permalink
docs: Update network examples
Browse files Browse the repository at this point in the history
The 'network' filter has been removed in API v1alpha7. Update our docs
to reflect this.

Signed-off-by: Stephen Finucane <[email protected]>
  • Loading branch information
stephenfin committed Nov 29, 2023
1 parent 38f28da commit fc76995
Showing 1 changed file with 37 additions and 34 deletions.
71 changes: 37 additions & 34 deletions docs/book/src/clusteropenstack/configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -305,9 +305,9 @@ metadata:
spec:
template:
spec:
networks:
- filter:
name: <network-name>
ports:
- network:
name: <network-name>
```

## Multiple Networks
Expand All @@ -323,12 +323,15 @@ metadata:
spec:
template:
spec:
networks:
- filter:
name: myNetwork
tags: myTag
- uuid: your_network_id
- subnet_id: your_subnet_id
ports:
- network:
name: myNetwork
tags: myTag
- network:
id: your_network_id
- fixedIPs:
- subnet:
id: your_subnet_id
```

## Subnet Filters
Expand All @@ -344,12 +347,12 @@ metadata:
spec:
template:
spec:
networks:
- filter:
name: <network-name>
subnets:
- filter:
name: <subnet-name>
ports:
- network:
name: <network-name>
fixedIPs:
- subnet:
name: <subnet-name>
```

## Ports
Expand All @@ -366,25 +369,25 @@ spec:
template:
spec:
ports:
- network:
id: <your-network-id>
fixedIPs:
- subnet:
id: <your-subnet-id>
ipAddress: <your-fixed-ip>
- subnet:
name: <your-subnet-name>
tags:
- tag1
- tag2
nameSuffix: <your-port-name>
description: <your-custom-port-description>
vnicType: normal
securityGroups:
- <your-security-group-id>
profile:
capabilities:
- <capability>
- network:
id: <your-network-id>
fixedIPs:
- subnet:
id: <your-subnet-id>
ipAddress: <your-fixed-ip>
- subnet:
name: <your-subnet-name>
tags:
- tag1
- tag2
nameSuffix: <your-port-name>
description: <your-custom-port-description>
vnicType: normal
securityGroups:
- <your-security-group-id>
profile:
capabilities:
- <capability>
```

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

0 comments on commit fc76995

Please sign in to comment.