diff options
| author | Donatas Abraitis <donatas@opensourcerouting.org> | 2022-03-21 13:38:14 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2022-03-21 13:38:14 +0200 |
| commit | 374eefb18b9087101e4f79ada06d31c4ec701059 (patch) | |
| tree | 6ac2176bb8ffe11548e34d6568c6521ea9499280 /pimd/pim_cmd.c | |
| parent | 25d7130380d9ce6146fb14c58da330116ef9da8f (diff) | |
| parent | f37cbaea86137d96ab413041afd4dbb89552ce84 (diff) | |
Merge pull request #10832 from patrasar/2520720
pimd: add source and group information in mroute json
Diffstat (limited to 'pimd/pim_cmd.c')
| -rw-r--r-- | pimd/pim_cmd.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/pimd/pim_cmd.c b/pimd/pim_cmd.c index 187a639217..5693baf507 100644 --- a/pimd/pim_cmd.c +++ b/pimd/pim_cmd.c @@ -6060,6 +6060,10 @@ static void show_mroute(struct pim_instance *pim, struct vty *vty, /* Find the inbound interface nested under the source, * create it if it doesn't exist */ + json_object_string_add(json_source, "source", + src_str); + json_object_string_add(json_source, "group", + grp_str); json_object_int_add(json_source, "installed", c_oil->installed); json_object_int_add(json_source, "refCount", |
