$ oc get -n <project> egressnetworkpolicy
As a cluster administrator, you can modify network traffic rules for an existing egress firewall.
As a cluster administrator, you can update the egress firewall for a project.
A cluster using the OpenShift SDN network plugin.
Install the OpenShift CLI (oc).
You must log in to the cluster as a cluster administrator.
Find the name of the EgressNetworkPolicy CR for the project.
$ oc get -n <project> egressnetworkpolicy
Replace <project> with the name of the project.
Optional: If you did not save a copy of the EgressNetworkPolicy CR when you created the egress firewall, enter the following command to create a copy.
$ oc get -n <project> egressnetworkpolicy <name> -o yaml > <filename>.yaml
Replace <project> with the name of the project. Replace <name> with the name of the object. Replace <filename> with the name of the file to save the YAML to.
After making changes to the policy rules, enter the following command to replace the EgressNetworkPolicy CR.
$ oc replace -f <filename>.yaml
Replace <filename> with the name of the file containing the updated EgressNetworkPolicy CR.