/AWS1/IF_NWM=>LISTCORENETROUTINGINFMTION()¶
About ListCoreNetworkRoutingInformation¶
Lists routing information for a core network, including routes and their attributes.
Method Signature¶
METHODS /AWS1/IF_NWM~LISTCORENETROUTINGINFMTION
IMPORTING
!IV_CORENETWORKID TYPE /AWS1/NWMCORENETWORKID OPTIONAL
!IV_SEGMENTNAME TYPE /AWS1/NWMCONSTRAINEDSTRING OPTIONAL
!IV_EDGELOCATION TYPE /AWS1/NWMEXTERNALREGIONCODE OPTIONAL
!IT_NEXTHOPFILTERS TYPE /AWS1/CL_NWMFILTERVALUES_W=>TT_FILTERMAP OPTIONAL
!IT_LOCALPREFERENCEMATCHES TYPE /AWS1/CL_NWMCONSTRAINEDSTRLS00=>TT_CONSTRAINEDSTRINGLIST OPTIONAL
!IT_EXACTASPATHMATCHES TYPE /AWS1/CL_NWMCONSTRAINEDSTRLS00=>TT_CONSTRAINEDSTRINGLIST OPTIONAL
!IT_MEDMATCHES TYPE /AWS1/CL_NWMCONSTRAINEDSTRLS00=>TT_CONSTRAINEDSTRINGLIST OPTIONAL
!IT_COMMUNITYMATCHES TYPE /AWS1/CL_NWMCONSTRAINEDSTRLS00=>TT_CONSTRAINEDSTRINGLIST OPTIONAL
!IV_MAXRESULTS TYPE /AWS1/NWMMAXRESULTS OPTIONAL
!IV_NEXTTOKEN TYPE /AWS1/NWMNEXTTOKEN OPTIONAL
RETURNING
VALUE(OO_OUTPUT) TYPE REF TO /aws1/cl_nwmlstcorenetroutin01
RAISING
/AWS1/CX_NWMACCESSDENIEDEX
/AWS1/CX_NWMINTERNALSERVEREX
/AWS1/CX_NWMRESOURCENOTFOUNDEX
/AWS1/CX_NWMTHROTTLINGEX
/AWS1/CX_NWMVALIDATIONEX
/AWS1/CX_NWMCLIENTEXC
/AWS1/CX_NWMSERVEREXC
/AWS1/CX_RT_TECHNICAL_GENERIC
/AWS1/CX_RT_SERVICE_GENERIC.
IMPORTING¶
Required arguments:¶
iv_corenetworkid TYPE /AWS1/NWMCORENETWORKID /AWS1/NWMCORENETWORKID¶
The ID of the core network to retrieve routing information for.
iv_segmentname TYPE /AWS1/NWMCONSTRAINEDSTRING /AWS1/NWMCONSTRAINEDSTRING¶
The name of the segment to filter routing information by.
iv_edgelocation TYPE /AWS1/NWMEXTERNALREGIONCODE /AWS1/NWMEXTERNALREGIONCODE¶
The edge location to filter routing information by.
Optional arguments:¶
it_nexthopfilters TYPE /AWS1/CL_NWMFILTERVALUES_W=>TT_FILTERMAP TT_FILTERMAP¶
Filters to apply based on next hop information.
it_localpreferencematches TYPE /AWS1/CL_NWMCONSTRAINEDSTRLS00=>TT_CONSTRAINEDSTRINGLIST TT_CONSTRAINEDSTRINGLIST¶
Local preference values to match when filtering routing information.
it_exactaspathmatches TYPE /AWS1/CL_NWMCONSTRAINEDSTRLS00=>TT_CONSTRAINEDSTRINGLIST TT_CONSTRAINEDSTRINGLIST¶
Exact AS path values to match when filtering routing information.
it_medmatches TYPE /AWS1/CL_NWMCONSTRAINEDSTRLS00=>TT_CONSTRAINEDSTRINGLIST TT_CONSTRAINEDSTRINGLIST¶
Multi-Exit Discriminator (MED) values to match when filtering routing information.
it_communitymatches TYPE /AWS1/CL_NWMCONSTRAINEDSTRLS00=>TT_CONSTRAINEDSTRINGLIST TT_CONSTRAINEDSTRINGLIST¶
BGP community values to match when filtering routing information.
iv_maxresults TYPE /AWS1/NWMMAXRESULTS /AWS1/NWMMAXRESULTS¶
The maximum number of routing information entries to return in a single page.
iv_nexttoken TYPE /AWS1/NWMNEXTTOKEN /AWS1/NWMNEXTTOKEN¶
The token for the next page of results.
RETURNING¶
oo_output TYPE REF TO /aws1/cl_nwmlstcorenetroutin01 /AWS1/CL_NWMLSTCORENETROUTIN01¶
Domain /AWS1/RT_ACCOUNT_ID Primitive Type NUMC
Examples¶
Syntax Example¶
This is an example of the syntax for calling the method. It includes every possible argument and initializes every possible value. The data provided is not necessarily semantically accurate (for example the value "string" may be provided for something that is intended to be an instance ID, or in some cases two arguments may be mutually exclusive). The syntax shows the ABAP syntax for creating the various data structures.
DATA(lo_result) = lo_client->listcorenetroutinginfmtion(
it_communitymatches = VALUE /aws1/cl_nwmconstrainedstrls00=>tt_constrainedstringlist(
( new /aws1/cl_nwmconstrainedstrls00( |string| ) )
)
it_exactaspathmatches = VALUE /aws1/cl_nwmconstrainedstrls00=>tt_constrainedstringlist(
( new /aws1/cl_nwmconstrainedstrls00( |string| ) )
)
it_localpreferencematches = VALUE /aws1/cl_nwmconstrainedstrls00=>tt_constrainedstringlist(
( new /aws1/cl_nwmconstrainedstrls00( |string| ) )
)
it_medmatches = VALUE /aws1/cl_nwmconstrainedstrls00=>tt_constrainedstringlist(
( new /aws1/cl_nwmconstrainedstrls00( |string| ) )
)
it_nexthopfilters = VALUE /aws1/cl_nwmfiltervalues_w=>tt_filtermap(
(
VALUE /aws1/cl_nwmfiltervalues_w=>ts_filtermap_maprow(
key = |string|
value = VALUE /aws1/cl_nwmfiltervalues_w=>tt_filtervalues(
( new /aws1/cl_nwmfiltervalues_w( |string| ) )
)
)
)
)
iv_corenetworkid = |string|
iv_edgelocation = |string|
iv_maxresults = 123
iv_nexttoken = |string|
iv_segmentname = |string|
).
This is an example of reading all possible response values
lo_result = lo_result.
IF lo_result IS NOT INITIAL.
LOOP AT lo_result->get_corenetroutinginfmtion( ) into lo_row.
lo_row_1 = lo_row.
IF lo_row_1 IS NOT INITIAL.
lv_constrainedstring = lo_row_1->get_prefix( ).
lo_routinginformationnexth = lo_row_1->get_nexthop( ).
IF lo_routinginformationnexth IS NOT INITIAL.
lv_ipaddress = lo_routinginformationnexth->get_ipaddress( ).
lv_constrainedstring = lo_routinginformationnexth->get_corenetworkattachmentid( ).
lv_constrainedstring = lo_routinginformationnexth->get_resourceid( ).
lv_constrainedstring = lo_routinginformationnexth->get_resourcetype( ).
lv_constrainedstring = lo_routinginformationnexth->get_segmentname( ).
lv_externalregioncode = lo_routinginformationnexth->get_edgelocation( ).
ENDIF.
lv_constrainedstring = lo_row_1->get_localpreference( ).
lv_constrainedstring = lo_row_1->get_med( ).
LOOP AT lo_row_1->get_aspath( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_constrainedstring = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
LOOP AT lo_row_1->get_communities( ) into lo_row_2.
lo_row_3 = lo_row_2.
IF lo_row_3 IS NOT INITIAL.
lv_constrainedstring = lo_row_3->get_value( ).
ENDIF.
ENDLOOP.
ENDIF.
ENDLOOP.
lv_nexttoken = lo_result->get_nexttoken( ).
ENDIF.