From 5e1e192bbce8b76b09689f0b98af88f3e111508b Mon Sep 17 00:00:00 2001 From: Joakim Tjernlund Date: Mon, 30 Mar 2009 08:08:53 -0700 Subject: copy config for renamed interfaces. When renameing an interface to a preconfigured name, make sure that the preconfigured config is preserved. --- zebra/interface.c | 1 + 1 file changed, 1 insertion(+) (limited to 'zebra/interface.c') diff --git a/zebra/interface.c b/zebra/interface.c index ae25c2ee..91f18bca 100644 --- a/zebra/interface.c +++ b/zebra/interface.c @@ -498,6 +498,7 @@ if_rename (struct interface *ifp, const char *name) oifp = if_lookup_by_name(name); if (oifp) { + ifp->status |= oifp->status; /* inherit config bits */ if (oifp->ifindex != IFINDEX_INTERNAL) { zlog_err ("interface %s rename to %s overlaps with index %d", -- cgit v1.2.3