// Module included in the following assemblies:
//
// * networking/hardware_networks/configuring-sriov-operator.adoc

:_mod-docs-content-type: PROCEDURE
[id="disable-enable-network-resource-injector_{context}"]
= Disabling or enabling the Network Resources Injector

[role="_abstract"]
To control the automatic configuration of your cluster workloads, enable or disable the Network Resources Injector.

.Prerequisites

* Install the {oc-first}.
* Log in as a user with `cluster-admin` privileges.
* You must have installed the SR-IOV Network Operator.

.Procedure

* Set the `enableInjector` field. Replace `<value>` with `false` to disable the feature or `true` to enable the feature.
+
[source,terminal]
----
$ oc patch sriovoperatorconfig default \
  --type=merge -n openshift-sriov-network-operator \
  --patch '{ "spec": { "enableInjector": <value> } }'
----
+
[TIP]
====
You can alternatively apply the following YAML to update the Operator:

[source,yaml]
----
apiVersion: sriovnetwork.openshift.io/v1
kind: SriovOperatorConfig
metadata:
  name: default
  namespace: openshift-sriov-network-operator
spec:
  enableInjector: <value>
# ...
----
====
