/** * The BgpSession model module. * @module Ntnx/BgpSession * @version 4.4.1 * @class BgpSession * @extends NetworkingBaseModel * * @param { string } name BGP session name. * * @param { string } localGatewayReference Local BGP gateway reference. * * @param { string } remoteGatewayReference Remote BGP gateway reference. */ export default class BgpSession extends NetworkingBaseModel { /** * Constructs a new BgpSession. * BGP session. * @alias module:Ntnx/BgpSession * @extends module:Ntnx/NetworkingBaseModel * * @param { string } name BGP session name. * * @param { string } localGatewayReference Local BGP gateway reference. * * @param { string } remoteGatewayReference Remote BGP gateway reference. */ constructor(name: string, localGatewayReference: string, remoteGatewayReference: string); name: string; localGatewayReference: string; remoteGatewayReference: string; /** * Returns BGP session name. * @return {string} */ getName(): string; /** * Sets BGP session name. * @param {string} name BGP session name. */ setName(name: string): void; /** * Returns BGP session description. * @return {string} */ getDescription(): string; /** * Sets BGP session description. * @param {string} description BGP session description. */ setDescription(description: string): void; description: string; /** * Returns Local BGP gateway reference. * @return {string} */ getLocalGatewayReference(): string; /** * Sets Local BGP gateway reference. * @param {string} localGatewayReference Local BGP gateway reference. */ setLocalGatewayReference(localGatewayReference: string): void; /** * Returns Remote BGP gateway reference. * @return {string} */ getRemoteGatewayReference(): string; /** * Sets Remote BGP gateway reference. * @param {string} remoteGatewayReference Remote BGP gateway reference. */ setRemoteGatewayReference(remoteGatewayReference: string): void; /** * @return {IPAddress} */ getLocalGatewayInterfaceIpAddress(): IPAddress; /** * @param {IPAddress} localGatewayInterfaceIpAddress */ setLocalGatewayInterfaceIpAddress(localGatewayInterfaceIpAddress: IPAddress): void; localGatewayInterfaceIpAddress: IPAddress; /** * Returns Priority assigned to routes received over this BGP session. * minimum: 300 * maximum: 1000 * @return {Number} */ getDynamicRoutePriority(): number; /** * Sets Priority assigned to routes received over this BGP session. * @param {Number} dynamicRoutePriority Priority assigned to routes received over this BGP session. */ setDynamicRoutePriority(dynamicRoutePriority: number): void; dynamicRoutePriority: number; /** * Returns BGP password * @return {String} */ getPassword(): string; /** * Sets BGP password * @param {String} password BGP password */ setPassword(password: string): void; password: string; /** * @return {Status} */ getStatus(): Status; /** * @param {Status} status */ setStatus(status: Status): void; status: Status; /** * @return {Gateway} */ getLocalGateway(): Gateway; /** * @param {Gateway} localGateway */ setLocalGateway(localGateway: Gateway): void; localGateway: Gateway; /** * @return {Gateway} */ getRemoteGateway(): Gateway; /** * @param {Gateway} remoteGateway */ setRemoteGateway(remoteGateway: Gateway): void; remoteGateway: Gateway; /** * Returns Advertise all VPC externally-routable prefixes. * @return {boolean} */ getShouldAdvertiseAllExternallyRoutablePrefixes(): boolean; /** * Sets Advertise all VPC externally-routable prefixes. * @param {boolean} shouldAdvertiseAllExternallyRoutablePrefixes Advertise all VPC externally-routable prefixes. */ setShouldAdvertiseAllExternallyRoutablePrefixes(shouldAdvertiseAllExternallyRoutablePrefixes: boolean): void; shouldAdvertiseAllExternallyRoutablePrefixes: boolean; /** * Returns VPC externally-routable prefixes to advertise. * @return {IPSubnet[]} */ getExternallyRoutablePrefixesToAdvertise(): IPSubnet[]; /** * Sets VPC externally-routable prefixes to advertise. * @param {IPSubnet[]} externallyRoutablePrefixesToAdvertise VPC externally-routable prefixes to advertise. */ setExternallyRoutablePrefixesToAdvertise(externallyRoutablePrefixesToAdvertise: IPSubnet[]): void; externallyRoutablePrefixesToAdvertise: IPSubnet[]; /** * Returns List of ASNs to prepend to the AS_path attribute of BGP updates for this session. * @return {long[]} */ getPrependedAutonomousSystemPath(): long[]; /** * Sets List of ASNs to prepend to the AS_path attribute of BGP updates for this session. * @param {long[]} prependedAutonomousSystemPath List of ASNs to prepend to the AS_path attribute of BGP updates for this session. */ setPrependedAutonomousSystemPath(prependedAutonomousSystemPath: long[]): void; prependedAutonomousSystemPath: long[]; /** * Returns BGP community tags for advertised routes. * @return {BgpCommunity[]} */ getAdvertisedRoutesCommunities(): BgpCommunity[]; /** * Sets BGP community tags for advertised routes. * @param {BgpCommunity[]} advertisedRoutesCommunities BGP community tags for advertised routes. */ setAdvertisedRoutesCommunities(advertisedRoutesCommunities: BgpCommunity[]): void; advertisedRoutesCommunities: BgpCommunity[]; #private; } import NetworkingBaseModel from "./NetworkingBaseModel"; import IPAddress from "../../../common/v1/config/IPAddress"; import Status from "./Status"; import Gateway from "./Gateway"; import IPSubnet from "./IPSubnet"; import BgpCommunity from "./BgpCommunity";