From 0cb1bf78736573f13d45e6b138a8c1ac42228b1f Mon Sep 17 00:00:00 2001 From: Nathan Bahr Date: Wed, 26 Jun 2024 12:41:45 -0500 Subject: pimd, yang: Implement igmp static-group command This will add a static IGMP group that does not rely on an underlying socket join which sends traffic to the cpu unneccesarily. Instead, the groups are joined directly without any IGMP interactions. New command is under interfaces, 'ip igmp static-group ...'. Added an alias for 'ip igmp join ...' to 'ip igmp join-group'. Moved IGMP join groups to new yang list "join-group" and reused the "static-group" list for the IGMP static groups. Signed-off-by: Nathan Bahr --- yang/frr-gmp.yang | 21 +++++++++++++++++++-- 1 file changed, 19 insertions(+), 2 deletions(-) (limited to 'yang') diff --git a/yang/frr-gmp.yang b/yang/frr-gmp.yang index c8a05a2bdb..e6a1f7f640 100644 --- a/yang/frr-gmp.yang +++ b/yang/frr-gmp.yang @@ -147,10 +147,10 @@ module frr-gmp { expected packet loss on a network."; } - list static-group { + list join-group { key "group-addr source-addr"; description - "A static multicast route, (*,G) or (S,G). + "A static GMP join, (*,G) or (S,G). The version of IGMP must be 3 to support (S,G)."; leaf group-addr { @@ -164,6 +164,23 @@ module frr-gmp { "Multicast source address."; } } + + list static-group { + key "group-addr source-addr"; + description + "A static multicast group without GMP, (*,G) or (S,G)."; + + leaf group-addr { + type rt-types:ip-multicast-group-address; + description + "Multicast group address."; + } + leaf source-addr { + type inet:ip-address; + description + "Multicast source address."; + } + } } // interface-config-attributes /* -- cgit v1.2.3