95 lines
2.9 KiB
C#
95 lines
2.9 KiB
C#
namespace PS.IPAM;
|
|
using System;
|
|
|
|
public class Subnetwork {
|
|
public int Id { get; }
|
|
public string Subnet { get; }
|
|
public int Mask { get; }
|
|
public int SectionId { get; }
|
|
public string Description { get; }
|
|
public string LinkedSubnet { get; }
|
|
public int FirewallAddressObject { get; }
|
|
public int VrfId { get; }
|
|
public int MasterSubnetId { get; }
|
|
public bool AllowRequests { get; }
|
|
public int VlanId { get; }
|
|
public bool ShowName { get; }
|
|
public int Device { get; }
|
|
public bool PingSubnet { get; }
|
|
public bool DiscoverSubnet { get; }
|
|
public bool ResolveDNS { get; }
|
|
public Subnetwork(
|
|
int id,
|
|
string subnet,
|
|
int mask,
|
|
int sectionId,
|
|
string description,
|
|
string linkedSubnet,
|
|
int firewallAddressObject,
|
|
int vrfId,
|
|
int masterSubnetId,
|
|
string permissions,
|
|
bool allowRequests,
|
|
int vlanId,
|
|
bool showName,
|
|
int device,
|
|
bool pingSubnet,
|
|
bool discoverSubnet,
|
|
bool resolveDNS
|
|
) {
|
|
this.Id = id;
|
|
this.Subnet = subnet;
|
|
this.Mask = mask;
|
|
this.SectionId = sectionId;
|
|
this.Description = description;
|
|
this.LinkedSubnet = linkedSubnet;
|
|
this.FirewallAddressObject = firewallAddressObject;
|
|
this.VrfId = vrfId;
|
|
this.MasterSubnetId = masterSubnetId;
|
|
this.AllowRequests = allowRequests;
|
|
this.VlanId = vlanId;
|
|
this.ShowName = showName;
|
|
this.Device = device;
|
|
this.PingSubnet = pingSubnet;
|
|
this.DiscoverSubnet = discoverSubnet;
|
|
this.ResolveDNS = resolveDNS;
|
|
}
|
|
|
|
public override string ToString()
|
|
{
|
|
return $"{this.Subnet}/{this.Mask}";
|
|
}
|
|
}
|
|
|
|
id : 1
|
|
subnet : fd13:6d20:29dc:cf27::
|
|
mask : 64
|
|
sectionId : 2
|
|
description : Private subnet 1
|
|
linked_subnet :
|
|
firewallAddressObject :
|
|
vrfId : 0
|
|
masterSubnetId : 0
|
|
allowRequests : 1
|
|
vlanId : 1
|
|
showName : 1
|
|
device : 0
|
|
permissions : {"3":"1","2":"2"}
|
|
pingSubnet : 0
|
|
discoverSubnet : 0
|
|
resolveDNS : 0
|
|
DNSrecursive : 0
|
|
DNSrecords : 0
|
|
nameserverId : 0
|
|
scanAgent :
|
|
customer_id :
|
|
isFolder : 0
|
|
isFull : 0
|
|
isPool : 0
|
|
tag : 2
|
|
threshold : 0
|
|
location :
|
|
editDate :
|
|
lastScan :
|
|
lastDiscovery :
|
|
calculation : @{Type=IPv6; Host address=/; Host address (uncompressed)=/; Subnet prefix=fd13:6d20:29dc:cf27::/64; Prefix length=64; Subnet Reverse DNS=7.2.f.c.c.d.9.2.0.2.d.6.3.1.d.f.ip6.arpa; Min host IP=fd13:6d20:29dc:cf27::; Max host IP=fd13:6d20:29dc:cf27:ffff:ffff:ffff:ffff; Number of hosts=18446744073709551616; Address type=NET_IPV6} |