diff options
| author | Philippe Guibert <philippe.guibert@6wind.com> | 2018-08-29 11:29:07 +0200 |
|---|---|---|
| committer | Philippe Guibert <philippe.guibert@6wind.com> | 2018-08-29 11:34:08 +0200 |
| commit | 0e4864eaf0dfd5d883d8192a905405b9a72af68e (patch) | |
| tree | 8adeb4e6602bec1cd545679e89d24ac0aecdeeab /zebra/interface.c | |
| parent | 680c278fb8110b19873a4f4877878b1ea0eec2d3 (diff) | |
zebra: do not update link if interface is veth interface
when interface is a virtual ethernet interface, then there is no need to
update link pointer of interface.
Signed-off-by: Philippe Guibert <philippe.guibert@6wind.com>
Diffstat (limited to 'zebra/interface.c')
| -rw-r--r-- | zebra/interface.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/zebra/interface.c b/zebra/interface.c index 8558a8bd59..32ee1a566a 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -1007,6 +1007,8 @@ void zebra_if_update_link(struct interface *ifp, ifindex_t link_ifindex, { struct zebra_if *zif; + if (IS_ZEBRA_IF_VETH(ifp)) + return; zif = (struct zebra_if *)ifp->info; zif->link_ifindex = link_ifindex; zif->link = if_lookup_by_index_per_ns(zebra_ns_lookup(ns_id), @@ -1094,6 +1096,10 @@ static const char *zebra_ziftype_2str(zebra_iftype_t zif_type) return "VRF"; break; + case ZEBRA_IF_VETH: + return "VETH"; + break; + default: return "Unknown"; break; |
