diff options
| author | Sarita Patra <saritap@vmware.com> | 2019-03-31 23:38:28 -0700 |
|---|---|---|
| committer | Sarita Patra <saritap@vmware.com> | 2019-03-31 23:38:28 -0700 |
| commit | e7cd85bda76820933a10d59d0376985fa4b10fd9 (patch) | |
| tree | d059bbd9dcf17b9dce66dd698e1129714d7c2e62 /pimd/pim_mroute.c | |
| parent | ecedbaa13b8f39011c8c3feed163b293605447de (diff) | |
pimd: Introduce mroute_creation in channel oil data structure
Issue: (*,G) mroute uptime is not updated in mroute table,
after deleting and adding the RP
Root cause: When RP gets deleted or becomes not reachable, then
we un-install the entry from the kernel, but still maintains the
entry in the stack. When RP gets re-configured or becomes reachable,
"show ip mroute" shows the uptime, when the channel_oil gets created.
Fix: Introduce a new time mroute_creation in the channel_oil, gets
updated when mroute gets installed in the kernel.
Signed-off-by: Sarita Patra <saritap@vmware.com>
Diffstat (limited to 'pimd/pim_mroute.c')
| -rw-r--r-- | pimd/pim_mroute.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/pimd/pim_mroute.c b/pimd/pim_mroute.c index 67b1a95f74..b5e773fb59 100644 --- a/pimd/pim_mroute.c +++ b/pimd/pim_mroute.c @@ -964,6 +964,8 @@ int pim_mroute_add(struct channel_oil *c_oil, const char *name) } c_oil->installed = 1; + c_oil->mroute_creation = pim_time_monotonic_sec(); + return 0; } |
