diff options
author | Alexander Chernavin <achernavin@netgate.com> | 2022-02-14 12:59:28 +0000 |
---|---|---|
committer | Matthew Smith <mgsmith@netgate.com> | 2022-03-29 13:31:02 +0000 |
commit | 851215a04ff53df2eb153133e3f47f514facde3a (patch) | |
tree | 33a92330d070d9f7319ecdc66f5a67acf838b5a8 /src/scripts/host-stack | |
parent | 1c5b127d2247b68f362b3caac8ff229406fab4d0 (diff) |
linux-cp: handle ipv4 routes when link goes down on subif
Type: improvement
Currently, the plugin can monitor link state changes on hardware
interfaces for which a linux-cp pair exists. When the link goes down on
one of the hardware interfaces, the plugin processes IPv4 routes that
resolve through that interface according to the configurations:
del-static-on-link-down and del-dynamic-on-link-down.
The problem is that link state changes are not signaled for
subinterfaces and the code that handles IPv4 routes is not triggered.
When the link on a hardware interface goes down, it implies
that subinterfaces added to that interface also will have the link in
the down state.
With this change, when the link goes down on a hardware interface,
iterate over subinterfaces added to the interface and apply the same
logic of routes processing as for hardware interfaces.
Signed-off-by: Alexander Chernavin <achernavin@netgate.com>
Change-Id: I97337d2e328437c73f2d99a00737768778f197a1
Diffstat (limited to 'src/scripts/host-stack')
0 files changed, 0 insertions, 0 deletions