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: openshift#2829
ref: openshift#2892
  • Loading branch information
pierreprinetti authored and jhixson74 committed Jan 30, 2020
1 parent d5d8955 commit abdf8cd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/user/openstack/install_upi.md
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 abdf8cd

Please sign in to comment.