mirror of
https://github.com/fwbuilder/fwbuilder
synced 2026-06-24 01:49:36 +02:00
add AddressRagenIpv6 to list_object - thx to Michal
This commit is contained in:
@@ -81,6 +81,7 @@
|
||||
#include "fwbuilder/DNSName.h"
|
||||
#include "fwbuilder/AddressTable.h"
|
||||
#include "fwbuilder/AddressRange.h"
|
||||
#include "fwbuilder/AddressRangeIPv6.h"
|
||||
#include "fwbuilder/ObjectGroup.h"
|
||||
#include "fwbuilder/Interface.h"
|
||||
#include "fwbuilder/CustomService.h"
|
||||
@@ -148,12 +149,22 @@ string getAttributeValue(FWObject *obj, const string &attr_name)
|
||||
{
|
||||
return AddressRange::cast(obj)->getRangeStart().toString();
|
||||
}
|
||||
|
||||
|
||||
if (attr_name=="end_address" && objtype==AddressRange::TYPENAME)
|
||||
{
|
||||
return AddressRange::cast(obj)->getRangeEnd().toString();
|
||||
}
|
||||
|
||||
if (attr_name=="start_address" && objtype==AddressRangeIPv6::TYPENAME)
|
||||
{
|
||||
return AddressRangeIPv6::cast(obj)->getRangeStart().toString();
|
||||
}
|
||||
|
||||
if (attr_name=="end_address" && objtype==AddressRangeIPv6::TYPENAME)
|
||||
{
|
||||
return AddressRangeIPv6::cast(obj)->getRangeEnd().toString();
|
||||
}
|
||||
|
||||
if (attr_name=="dnsname" && objtype==DNSName::TYPENAME)
|
||||
{
|
||||
return DNSName::cast(obj)->getSourceName();
|
||||
|
||||
Reference in New Issue
Block a user