summaryrefslogtreecommitdiffstats
path: root/zebra/interface.c
diff options
context:
space:
mode:
authorJoakim Tjernlund <Joakim.Tjernlund@transmode.se>2009-03-30 08:08:53 -0700
committerStephen Hemminger <stephen.hemminger@vyatta.com>2009-03-30 08:08:53 -0700
commit5e1e192bbce8b76b09689f0b98af88f3e111508b (patch)
treec23595d93bd720325ac118dbb4a8f7023cea4a4a /zebra/interface.c
parentcf932c49c5a12696488d8d206dfad2515ccc8c60 (diff)
downloadquagga-5e1e192bbce8b76b09689f0b98af88f3e111508b.tar.bz2
quagga-5e1e192bbce8b76b09689f0b98af88f3e111508b.tar.xz
copy config for renamed interfaces.
When renameing an interface to a preconfigured name, make sure that the preconfigured config is preserved.
Diffstat (limited to 'zebra/interface.c')
-rw-r--r--zebra/interface.c1
1 files changed, 1 insertions, 0 deletions
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",