// Module included in the following assemblies:
//
// * networking/ovn_kubernetes_network_provider/disabling-multicast.adoc


ifeval::["{context}" == "ovn-kubernetes-disabling-multicast"]
:namespace: namespace
:annotation: k8s.ovn.org/multicast-enabled-
endif::[]

:_mod-docs-content-type: PROCEDURE
[id="nw-disabling-multicast_{context}"]
= Disabling multicast between pods

[role="_abstract"]
To disable multicast between pods in a project, you can remove the `k8s.ovn.org/multicast-enabled` annotation from the namespace by using the `oc annotate` command or a namespace manifest.

.Prerequisites

* Install the OpenShift CLI (`oc`).
* You must log in to the cluster with a user that has the `cluster-admin` role.

.Procedure

* Disable multicast by running the following command:
+
[source,terminal,subs="attributes+"]
----
$ oc annotate {namespace} <namespace> \
    {annotation}
----
+
For `<namespace>`, specify the namespace for the project you want to disable multicast for.
ifeval::["{context}" == "ovn-kubernetes-disabling-multicast"]
+
[TIP]
====
You can alternatively apply the following YAML to delete the annotation:

[source,yaml]
----
apiVersion: v1
kind: Namespace
metadata:
  name: <namespace>
  annotations:
    k8s.ovn.org/multicast-enabled: null
----
====
endif::[]

ifeval::["{context}" == "openshift-sdn-disabling-multicast"]
:!annotation:
:!namespace:
endif::[]
ifeval::["{context}" == "ovn-kubernetes-disabling-multicast"]
:!annotation:
:!namespace:
endif::[]
