mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-09-11 15:41:41 +02:00
bugfix 2590
This commit is contained in:
@@ -964,6 +964,8 @@ QAction *movID;
|
|||||||
{
|
{
|
||||||
newID1=popup->addAction( tr("Add IP Address"), this ,
|
newID1=popup->addAction( tr("Add IP Address"), this ,
|
||||||
SLOT( newInterfaceAddress() ) );
|
SLOT( newInterfaceAddress() ) );
|
||||||
|
newID1=popup->addAction( tr("Add IPv6 Address"), this ,
|
||||||
|
SLOT( newInterfaceAddressIPv6() ) );
|
||||||
newID2=popup->addAction( tr("Add MAC Address"), this ,
|
newID2=popup->addAction( tr("Add MAC Address"), this ,
|
||||||
SLOT( newPhysicalAddress() ) );
|
SLOT( newPhysicalAddress() ) );
|
||||||
}
|
}
|
||||||
@@ -2795,6 +2797,29 @@ void ObjectManipulator::newInterfaceAddress()
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void ObjectManipulator::newInterfaceAddressIPv6()
|
||||||
|
{
|
||||||
|
if ( currentObj->isReadOnly() ) return;
|
||||||
|
|
||||||
|
if (Interface::isA(currentObj))
|
||||||
|
{
|
||||||
|
Interface *intf = Interface::cast(currentObj);
|
||||||
|
if (intf &&
|
||||||
|
(intf->isDyn() || intf->isUnnumbered() || intf->isBridgePort())
|
||||||
|
) return;
|
||||||
|
QString iname=QString("%1:%2:ipv6")
|
||||||
|
.arg(QString::fromUtf8(currentObj->getParent()->getName().c_str()))
|
||||||
|
.arg(QString::fromUtf8(currentObj->getName().c_str()));
|
||||||
|
FWObject *o=createObject(currentObj, IPv6::TYPENAME, iname);
|
||||||
|
if (o!=NULL)
|
||||||
|
{
|
||||||
|
openObject(o);
|
||||||
|
editObject(o);
|
||||||
|
updateLastModifiedTimestampForAllFirewalls(o);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void ObjectManipulator::newTagService()
|
void ObjectManipulator::newTagService()
|
||||||
{
|
{
|
||||||
FWObject *o;
|
FWObject *o;
|
||||||
|
|||||||
@@ -179,6 +179,7 @@ public slots:
|
|||||||
void newAddress();
|
void newAddress();
|
||||||
void newAddressIPv6();
|
void newAddressIPv6();
|
||||||
void newInterfaceAddress();
|
void newInterfaceAddress();
|
||||||
|
void newInterfaceAddressIPv6();
|
||||||
void newPhysicalAddress();
|
void newPhysicalAddress();
|
||||||
void newAddressRange();
|
void newAddressRange();
|
||||||
void newObjectGroup();
|
void newObjectGroup();
|
||||||
|
|||||||
Reference in New Issue
Block a user