diff options
| author | anlan_cs <vic.lan@pica8.com> | 2023-06-19 09:10:57 +0800 |
|---|---|---|
| committer | anlan_cs <vic.lan@pica8.com> | 2023-07-02 10:30:09 +0800 |
| commit | caf896d6ef18d917a9b9cee9cb48719ea9757e37 (patch) | |
| tree | 2f3332ae45cfc9e662e0286d3979eb8b7fbafa38 /lib/json.h | |
| parent | 1f322e4cef0df7c736af7626ad7c9dc6f03e4bcc (diff) | |
zebra: Remove unnecessary condition check for kernel routes
There are relaxed nexthop requirements for kernel routes because we
trust kernel routes.
Two minor changes for kernel routes:
1. `if_is_up()` is one of the necessary conditions for `if_is_operative()`.
Here, we can remove this unnecessary check for clarity.
2. Since `nexthop_active()` doesn't distinguish whether it is kernel route,
modified the corresponding comment in it.
Signed-off-by: anlan_cs <vic.lan@pica8.com>
Diffstat (limited to 'lib/json.h')
0 files changed, 0 insertions, 0 deletions
