Commit df3e42b2 authored by Ad Schellevis's avatar Ad Schellevis

vlan, rename interface on create

parent cf3dbedf
......@@ -227,9 +227,7 @@ function interface_vlan_configure(&$vlan)
legacy_interface_destroy($vlanif);
}
$tmpvlanif = legacy_interface_create('vlan');
legacy_interface_rename($tmpvlanif, $vlanif);
legacy_interface_create('vlan', $vlanif);
$pcp = isset($vlan['pcp']) ? $vlan['pcp'] : 0;
legacy_vlan_tag($vlanif, $if, $vlan['tag'], $pcp);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment