mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-03-23 03:37:15 +01:00
see #2520 "Attached Network objects are not renamed if a firewall is
renamed"
This commit is contained in:
parent
510e6897dd
commit
ae21e6228f
@ -1,5 +1,8 @@
|
||||
2011-06-22 Vadim Kurland <vadim@netcitadel.com>
|
||||
|
||||
* ObjectManipulator_ops.cpp (autorename): fixed #2520 "Attached
|
||||
Network objects are not renamed if a firewall is renamed"
|
||||
|
||||
* AttachedNetworksDialog.cpp (addAddressToList): see #2519 Avoid
|
||||
creating duplicate network objects for the AttachedNetwork object
|
||||
if the parent interface has multiple ip addresses that belong to
|
||||
|
||||
@ -123,9 +123,10 @@ void ObjectManipulator::autorename(FWObject *obj)
|
||||
list<FWObject*> ipv6_list = obj->getByType(IPv6::TYPENAME);
|
||||
list<FWObject*> pa_list = obj->getByType(physAddress::TYPENAME);
|
||||
list<FWObject*> failover_list = obj->getByType(FailoverClusterGroup::TYPENAME);
|
||||
list<FWObject*> attached_list = obj->getByType(AttachedNetworks::TYPENAME);
|
||||
|
||||
if (ipv4_list.size() || ipv6_list.size() || pa_list.size() ||
|
||||
failover_list.size() || subinterfaces.size())
|
||||
failover_list.size() || subinterfaces.size() || attached_list.size())
|
||||
{
|
||||
list<FWObject*> vlans;
|
||||
for (list<FWObject*>::iterator j=subinterfaces.begin();
|
||||
@ -146,6 +147,7 @@ void ObjectManipulator::autorename(FWObject *obj)
|
||||
autorename(ipv6_list, IPv6::TYPENAME, "ip6");
|
||||
autorename(pa_list, physAddress::TYPENAME, "mac");
|
||||
autorename(failover_list, FailoverClusterGroup::TYPENAME, "members");
|
||||
autorename(attached_list, AttachedNetworks::TYPENAME, "attached");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user