Skip to content

Commit 02beb64

Browse files
committed
lib: Print multicast-source-interface rmap match
Signed-off-by: Corey Siltala <csiltala@atcorp.com>
1 parent 4c4f482 commit 02beb64

2 files changed

Lines changed: 7 additions & 0 deletions

File tree

lib/routemap.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,8 @@ DECLARE_QOBJ_TYPE(route_map);
340340
(strmatch(C, "frr-pim-route-map:ipv6-multicast-group-prefix-list"))
341341
#define IS_MATCH_MULTICAST_INTERFACE(C) \
342342
(strmatch(C, "frr-pim-route-map:multicast-interface"))
343+
#define IS_MATCH_MULTICAST_SOURCE_INTERFACE(C) \
344+
(strmatch(C, "frr-pim-route-map:multicast-source-interface"))
343345

344346
/* Route-map set actions */
345347
#define IS_SET_IPv4_NH(A) \

lib/routemap_cli.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -912,6 +912,11 @@ void route_map_condition_show(struct vty *vty, const struct lyd_node *dnode,
912912
yang_dnode_get_string(
913913
dnode,
914914
"./rmap-match-condition/frr-pim-route-map:multicast-interface"));
915+
} else if (IS_MATCH_MULTICAST_SOURCE_INTERFACE(condition)) {
916+
vty_out(vty, " match multicast-source-interface %s\n",
917+
yang_dnode_get_string(
918+
dnode,
919+
"./rmap-match-condition/frr-pim-route-map:multicast-source-interface"));
915920
}
916921
}
917922

0 commit comments

Comments
 (0)