<commit_before>// Module included in the following assemblies:
//
// * installing/installing_aws/installing-aws-network-customizations.adoc

[id="modifying-nwoperator-config-startup-{context}"]
= Modifying advanced network configuration parameters

You can modify the advanced network configuration parameters only before you
install the cluster. Advanced configuration customization lets you integrate
your cluster into your existing network environment by specifying an MTU or
VXLAN port, by allowing customization of
link:https://kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/[kube-proxy]
settings, and by specifying a different `mode` for the `openshiftSDNConfig`
parameter.

[IMPORTANT]
====
Modifying the {product-title} manifest files directly is not supported.
====

.Prerequisites

* Generate the `install-config.yaml` file and complete any modifications to it.

.Procedure

. Use the following command to create manifests:
+
----
$ openshift-install create manifests --dir=<installation_directory> <1>
----
<1> Specify the directory name that contains the `install-config.yaml` file for
your cluster.

. Create a file that is named `cluster-network-03-config.yml` in the
`<installation_directory>/manifests/ directory`:
+
----
$ touch <installation_directory>/manifests/cluster-network-03-config.yml <1>
----
<1> Specify the directory name that contains the `manifests/` directory for
your cluster.
+
After creating the file, three network configuration files are in the
`manifests/` directory, as shown:
+
----
$ ls <installation_directory>/manifests/cluster-network-*
cluster-network-01-crd.yml
cluster-network-02-config.yml
cluster-network-03-config.yml
----

. Open the `cluster-network-03-config.yml` file in an editor and enter a CR that
describes the Operator configuration you want:
+
[source,yaml]
----
apiVersion: operator.openshift.io/v1
kind: Network
metadata:
  name: default
spec: <1>
  defaultNetwork:<commit_msg>Change network operator resource name to cluster<commit_after>// Module included in the following assemblies:
//
// * installing/installing_aws/installing-aws-network-customizations.adoc

[id="modifying-nwoperator-config-startup-{context}"]
= Modifying advanced network configuration parameters

You can modify the advanced network configuration parameters only before you
install the cluster. Advanced configuration customization lets you integrate
your cluster into your existing network environment by specifying an MTU or
VXLAN port, by allowing customization of
link:https://kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/[kube-proxy]
settings, and by specifying a different `mode` for the `openshiftSDNConfig`
parameter.

[IMPORTANT]
====
Modifying the {product-title} manifest files directly is not supported.
====

.Prerequisites

* Generate the `install-config.yaml` file and complete any modifications to it.

.Procedure

. Use the following command to create manifests:
+
----
$ openshift-install create manifests --dir=<installation_directory> <1>
----
<1> Specify the directory name that contains the `install-config.yaml` file for
your cluster.

. Create a file that is named `cluster-network-03-config.yml` in the
`<installation_directory>/manifests/ directory`:
+
----
$ touch <installation_directory>/manifests/cluster-network-03-config.yml <1>
----
<1> Specify the directory name that contains the `manifests/` directory for
your cluster.
+
After creating the file, three network configuration files are in the
`manifests/` directory, as shown:
+
----
$ ls <installation_directory>/manifests/cluster-network-*
cluster-network-01-crd.yml
cluster-network-02-config.yml
cluster-network-03-config.yml
----

. Open the `cluster-network-03-config.yml` file in an editor and enter a CR that
describes the Operator configuration you want:
+
[source,yaml]
----
apiVersion: operator.openshift.io/v1
kind: Network
metadata:
  name: cluster
spec: <1>
  defaultNetwork:
{'fraction_non_alphanumeric': 0.10411928228455901, 'fraction_numerical': 0.009097801364670205, 'mean_word_length': 4.812041116005874, 'pattern_counts': {'":': 0, '<': 21, '<?xml version=': 0, '>': 21, 'https://': 2, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '4223241', 'n_tokens_mistral': 1155, 'n_tokens_neox': 1082, 'n_words': 379}