Skip to content

Commit

Permalink
Openstack UPI: machineCIDR machineNetwork.[].cidr
Browse files Browse the repository at this point in the history
A previous change referenced the cluster network instead of the machine
network.

ref: #2829
ref: #2892
  • Loading branch information
pierreprinetti committed Jan 9, 2020
1 parent b7825c5 commit 73dec4f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/user/openstack/install_upi.md
Original file line number Diff line number Diff line change
Expand Up @@ -157,15 +157,15 @@ We're going to use a custom subnet to illustrate how that can be done.


Our range will be `192.0.2.0/24` so we need to add that value to
`install-config.yaml`. Look under `networking` -> `clusterNetwork` -> network -> `cidr`.
`install-config.yaml`. Look under `networking` -> `machineNetwork` -> network -> `cidr`.

This command will do it for you:

```sh
$ python3 -c 'import yaml;
path = "install-config.yaml";
data = yaml.safe_load(open(path));
data["networking"]["clusterNetwork"][0]["cidr"] = "192.0.2.0/24";
data["networking"]["machineNetwork"][0]["cidr"] = "192.0.2.0/24";
open(path, "w").write(yaml.dump(data, default_flow_style=False))'
```

Expand Down

0 comments on commit 73dec4f

Please sign in to comment.