[RHOCP 4] Add and remove additional network attachments in OpenShift using "oc patch"

Solution Verified - Updated -

Issue

  • How to add additional network attachments additionalNetworks using the oc patch command in OpenShift cluster?
  • Is there any patch command available that will help to remove additionalNetworks ?
  • Getting the below error while adding additionalNetworks:

    $ oc patch network.operator cluster --patch-file <file_name> --type json
    The request is invalid
    

Environment

  • Red Hat OpenShift Container Platform (RHOCP)
    • 4

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content