diff options
author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-03-16 18:37:08 +0100 |
---|---|---|
committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-03-26 11:31:44 +0200 |
commit | b53686c52a592e5edf0d89f92ec9a2b83fc4e470 (patch) | |
tree | cfc0bc358e530995a32209de8b1b54d1334b7049 /zebra/interface.h | |
parent | Merge pull request #1952 from donaldsharp/zebra_rule_replace (diff) | |
download | frr-b53686c52a592e5edf0d89f92ec9a2b83fc4e470.tar.xz frr-b53686c52a592e5edf0d89f92ec9a2b83fc4e470.zip |
zebra: delete interface that disappeared
When moving interfaces to an other place, like other netns, the
remaining interface is still present, with inactive status.
Now, that interface is deleted from the list, if the interface appears
on an other netns. If not, the interface is kept.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/interface.h')
-rw-r--r-- | zebra/interface.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/zebra/interface.h b/zebra/interface.h index 9f109fc05..f01864c9f 100644 --- a/zebra/interface.h +++ b/zebra/interface.h @@ -318,6 +318,8 @@ extern struct interface *if_lookup_by_index_per_ns(struct zebra_ns *, u_int32_t); extern struct interface *if_lookup_by_name_per_ns(struct zebra_ns *, const char *); +extern struct interface *if_lookup_by_name_not_ns(ns_id_t ns_id, + const char *ifname); extern struct interface *if_link_per_ns(struct zebra_ns *, struct interface *); extern const char *ifindex2ifname_per_ns(struct zebra_ns *, unsigned int); |