initial
This commit is contained in:
91
ts/interfaces/peeringdb.api.network.ts
Normal file
91
ts/interfaces/peeringdb.api.network.ts
Normal file
@@ -0,0 +1,91 @@
|
||||
import type { IPeeringDbBaseObject } from '../peeringdb.types.js';
|
||||
|
||||
/**
|
||||
* Network object from PeeringDB API
|
||||
* Represents an autonomous system (AS) and its peering information
|
||||
*/
|
||||
export interface INetwork extends IPeeringDbBaseObject {
|
||||
/** Network ID */
|
||||
id: number;
|
||||
|
||||
/** Organization ID */
|
||||
org_id: number;
|
||||
|
||||
/** Organization object (when depth > 0) */
|
||||
org?: any;
|
||||
|
||||
/** Network name */
|
||||
name: string;
|
||||
|
||||
/** Also known as (alternate names) */
|
||||
aka: string;
|
||||
|
||||
/** Website */
|
||||
website: string;
|
||||
|
||||
/** Autonomous System Number (ASN) */
|
||||
asn: number;
|
||||
|
||||
/** Looking glass URL */
|
||||
looking_glass: string;
|
||||
|
||||
/** Route server URL */
|
||||
route_server: string;
|
||||
|
||||
/** IRR as-set/route-set */
|
||||
irr_as_set: string;
|
||||
|
||||
/** Network information (markdown) */
|
||||
info_type: string;
|
||||
|
||||
/** Network traffic levels */
|
||||
info_traffic: string;
|
||||
|
||||
/** Network ratios */
|
||||
info_ratio: string;
|
||||
|
||||
/** Network scope */
|
||||
info_scope: string;
|
||||
|
||||
/** Network types (NSP, Content, etc.) */
|
||||
info_types: string;
|
||||
|
||||
/** Peering policy */
|
||||
policy_url: string;
|
||||
|
||||
/** General policy (Open, Selective, etc.) */
|
||||
policy_general: string;
|
||||
|
||||
/** Location requirements for peering */
|
||||
policy_locations: string;
|
||||
|
||||
/** Ratio requirement */
|
||||
policy_ratio: boolean;
|
||||
|
||||
/** Contract requirement */
|
||||
policy_contracts: string;
|
||||
|
||||
/** Notes (markdown) */
|
||||
notes: string;
|
||||
|
||||
/** Number of unicast IPv4 prefixes */
|
||||
info_unicast: boolean;
|
||||
|
||||
/** Number of unicast IPv6 prefixes */
|
||||
info_ipv6: boolean;
|
||||
|
||||
/** Number of multicast prefixes */
|
||||
info_multicast: boolean;
|
||||
|
||||
/** Is never via route servers */
|
||||
info_never_via_route_servers: boolean;
|
||||
|
||||
/** Related network contacts */
|
||||
poc_set?: number[] | any[];
|
||||
|
||||
/** Related network-facility connections */
|
||||
netfac_set?: number[] | any[];
|
||||
|
||||
/** Related network-IX connections */
|
||||
netixlan_set?: number[] | any[];
|
||||
}
|
||||
Reference in New Issue
Block a user