Skip to content

Commit 6523388

Browse files
authored
Merge pull request #106 from IBM/dl-route-reports
feat: direct link route report updates
2 parents db6c78c + 5ae5f77 commit 6523388

File tree

2 files changed

+306
-209
lines changed

2 files changed

+306
-209
lines changed

direct-link/v1.ts

Lines changed: 25 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4304,6 +4304,10 @@ namespace DirectLinkV1 {
43044304

43054305
/** route report. */
43064306
export interface RouteReport {
4307+
/** Array of connection prefixes advertised to the on-prem network. This parameter is not returned when the
4308+
* route report was generated prior to inclusion of this parameter.
4309+
*/
4310+
advertised_routes?: RouteReportAdvertisedRoute[];
43074311
/** Date and time route report was requested. */
43084312
created_at: string;
43094313
/** Array of local/direct routes. */
@@ -4324,6 +4328,14 @@ namespace DirectLinkV1 {
43244328
virtual_connection_routes: RouteReportConnection[];
43254329
}
43264330

4331+
/** Route advertised to the on-prem network. */
4332+
export interface RouteReportAdvertisedRoute {
4333+
/** The BGP AS path of the route. */
4334+
as_path: string;
4335+
/** prefix. */
4336+
prefix: string;
4337+
}
4338+
43274339
/** route reports. */
43284340
export interface RouteReportCollection {
43294341
/** Array of route reports. */
@@ -4333,7 +4345,7 @@ namespace DirectLinkV1 {
43334345
/** Routes of a virtual connection. */
43344346
export interface RouteReportConnection {
43354347
/** Array of virtual connection's routes. */
4336-
routes: RouteReportRoute[];
4348+
routes: RouteReportVirtualConnectionRoute[];
43374349
/** ID of virtual connection. */
43384350
virtual_connection_id?: string;
43394351
/** name of virtual connection. */
@@ -4344,6 +4356,8 @@ namespace DirectLinkV1 {
43444356

43454357
/** on-prem route. */
43464358
export interface RouteReportOnPremRoute {
4359+
/** The BGP AS path of the route. */
4360+
as_path?: string;
43474361
/** Next hop address. */
43484362
next_hop?: string;
43494363
/** prefix. */
@@ -4366,6 +4380,16 @@ namespace DirectLinkV1 {
43664380
prefix?: string;
43674381
}
43684382

4383+
/** A route originating from an attached virtual connection. */
4384+
export interface RouteReportVirtualConnectionRoute {
4385+
/** Indicates whether the route is the preferred path of the prefix. */
4386+
active?: boolean;
4387+
/** The local preference of the route. This attribute can manipulate the chosen path on routes. */
4388+
local_preference?: string;
4389+
/** prefix. */
4390+
prefix: string;
4391+
}
4392+
43694393
/** The autonomous system number (ASN) of Border Gateway Protocol (BGP) configuration for the IBM side of the DL 2.0 gateway. */
43704394
export interface GatewayActionTemplateUpdatesItemGatewayClientBGPASNUpdate extends GatewayActionTemplateUpdatesItem {
43714395
/** New gateway BGP ASN. */

0 commit comments

Comments
 (0)