File tree Expand file tree Collapse file tree 2 files changed +6
-14
lines changed
docs/book/src/clustercloudstack Expand file tree Collapse file tree 2 files changed +6
-14
lines changed Original file line number Diff line number Diff line change @@ -146,11 +146,11 @@ clusterctl generate cluster capc-cluster --flavor with-kube-vip > capc-cluster-s
146
146
##### Option for Multiple Networks
147
147
148
148
Multiple networks can be specified at each node configuration in CloudStackMachineTemplate.
149
- This is configured under spec.template.spec.networks, where you can list one or more networks by name or id,
149
+ This is configured under ` spec.template.spec.networks` , where you can list one or more networks by name or id,
150
150
and optionally assign static IP addresses.
151
151
152
- When defining multiple networks for a VM in CAPC, the first network listed under spec.template.spec.networks is treated as
153
- the primary network. This primary network must match the network defined in the failure domain’s zone (failureDomains[].zone.network),
152
+ When defining multiple networks for a VM in CAPC, the first network listed under ` spec.template.spec.networks` is treated as
153
+ the primary network. This primary network must match the network defined in the failure domain’s zone (` failureDomains[].zone.network` ),
154
154
either by name or by ID. It is used as the default NIC and is critical for VM boot and cluster communication.
155
155
156
156
Any networks listed after the primary are considered extra networks. These extra networks are attached as secondary NICs
Original file line number Diff line number Diff line change @@ -385,17 +385,9 @@ func (c *client) buildIPToNetworkList(csMachine *infrav1.CloudStackMachine) ([]m
385
385
return nil , err
386
386
}
387
387
388
- var entry map [string ]string
389
- if net .IP != "" {
390
- entry , err = c .buildIPEntry (resolvedNet , net .IP )
391
- if err != nil {
392
- return nil , err
393
- }
394
- } else {
395
- entry , err = c .buildIPEntry (resolvedNet , "" )
396
- if err != nil {
397
- return nil , err
398
- }
388
+ entry , err := c .buildIPEntry (resolvedNet , net .IP )
389
+ if err != nil {
390
+ return nil , err
399
391
}
400
392
401
393
ipToNetworkList = append (ipToNetworkList , entry )
You can’t perform that action at this time.
0 commit comments