APiImporter – IP Subnets
•IPv4 IP Network hierarchy
•IP Pool > IP Sub Net > IP Address
•IP Subnetworks describe an IP range
•File Structure:
•Subnets created and updated with properties by ApiImporter
•After Import in CM:
.Net-API – IP Subnets
IP Subnet is created with properties:
•Subnet (IP Range)
•IP Pool id (optional)
•Parent subnet Id (if any)
•Name (optional)
IP Pool cannot be updated later.
ApiImporter – IP Addresses – File Structure
IP Addresses
Read and updated with all other IP address properties
ApiImporter – IP Addresses
Before
After
.Net-API – IP Addresses with Ports
New property in class IpAddress
Is updated with IpAddress Details
Throws error if port id does not exist or if the port is already assigned to other IP Address
ApiImporter – Duct Lines – File Structure
•Duct Line is an ordered group of Ducts
•Cable Line is an ordered group of Cables
•Duct Line File Structure Example:
•46 = DuctLine, 45 = CableLine
•Duct Line Content File Structure
ApiImporter – Duct Lines in CM
•Created:
•With Content:
Net-API – Duct Lines
•New classes DuctLine.cs and CableLine.cs
•Behave identical except content
•Inherit from CompLine.cs
•Important properties (all readonly):
o LocationIdA and LocationIdZ
o ComponentIdA and ComponentIdZ
Additionally, all other known properties like description Owner, State, etc
Create with:
Net-API – Duct Lines - New Methods
Insert Content:
Read Content, get list of component ids:
Remove Content: