E-LAN Service Definitions Management RESTful Web Services
The following operations can be performed using the Connectivity Services Director E-LAN Service Definitions Management RESTful Web Services.
Get All E-LAN BGP Service Definitions
This request is used to retrieve all the configured E-LAN BGP service definitions.
URI | api/space/nsas/elan-vpls/service-management/service-definitions |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects all the configured E-LAN BGP service definitions. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource size="5"> <ServiceDefinition href="/api/space/nsas/elan-vpls/service-management/service-definitions/294912" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/294912" key="294912"> <Common> <Name>ELAN-BGP-QinQ-AllVLAN</Name> <Identity>294912</Identity> <State>Published</State> <Comments>Used for multisite LAN connectivity with high BW requirements.</Comments> <CreatedDate>2012-09-13T13:29:41.000+05:30</CreatedDate> <LastUpdatedDate>2012-09-13T13:29:41.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> </ServiceDefinition> <ServiceDefinition href="/api/space/nsas/elan-vpls/service-management/service-definitions/294932" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/294932" key="294932"> <Common> <Name>ELAN-BGP-Dot1Q-SingleVLAN</Name> <Identity>294932</Identity> <State>Published</State> <Comments>Used to transport single VLAN between multiple sites. </Comments> <CreatedDate>2012-09-13T13:29:42.000+05:30</CreatedDate> <LastUpdatedDate>2012-09-13T13:29:42.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> </ServiceDefinition> <ServiceDefinition href="/api/space/nsas/elan-vpls/service-management/service-definitions/294952" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/294952" key="294952"> <Common> <Name>ELAN-BGP-PortBased-10-100M</Name> <Identity>294952</Identity> <State>Published</State> <Comments>Used for multisite LAN connectivity with high BW requirements using dedicated ports.</Comments> <CreatedDate>2012-09-13T13:29:43.000+05:30</CreatedDate> <LastUpdatedDate>2012-09-13T13:29:43.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> </ServiceDefinition> <ServiceDefinition href="/api/space/nsas/elan-vpls/service-management/service-definitions/294970" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/294970" key="294970"> <Common> <Name>ELAN-BGP-QinQ-Range-Normalized-VLAN</Name> <Identity>294970</Identity> <State>Published</State> <Comments>Used for multisite LAN connectivity, with VLAN normalization.</Comments> <CreatedDate>2012-09-13T13:29:43.000+05:30</CreatedDate> <LastUpdatedDate>2012-09-13T13:29:43.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> </ServiceDefinition> <ServiceDefinition href="/api/space/nsas/elan-vpls/service-management/service-definitions/294993" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/294993" key="294993"> <Common> <Name>ELAN-BGP-QinQ-AllVLAN-Normalized-All</Name> <Identity>294993</Identity> <State>Published</State> <Comments>Used for multisite LAN connectivity, with VLAN normalization.</Comments> <CreatedDate>2012-09-13T13:29:43.000+05:30</CreatedDate> <LastUpdatedDate>2012-09-13T13:29:43.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> </ServiceDefinition> </ServiceResource> </Data>
Get All Published E-LAN Service Definitions
This request is used to retrieve all the published E-LAN service definitions.
URI | All service types: /api/space/nsas/service-management/ E-LAN: /api/space/nsas/elan-vpls/service-management/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Content Type | application/vnd.net.juniper.space.service-management |
Produces | Collects all the published E-LAN service definitions. |
Output
Sample XML Output
Get All E-LAN BGP Service Definitions with Pagination
This request is used to retrieve all the configured E-LAN BGP service definitions with pagination.
URI | api/space/nsas/elan-vpls/service-management/service-definitions api/space/nsas/elan-vpls/service-management/service-definitions |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects all the configured E-LAN BGP service definitions with pagination applied. |
For service orders, you can sort with “sortedby=CreatedDate” and “sortedby=State”.
For Start and Limit attributes, you can provide integer values based on your requirement to sort and filter the API output. Sortorder can be “asc” and “desc”. The SortedBy attribute differs based on the APIs. For service orders, the SortedBy option can be “CtreatedDate”, “State”. For services, the SortedBy option can be “Name”, “LastModifiedDate”. The FilteredBy attribute differs based on the APIs. For service orders, the FilteredBy option can be “Name” and “State”. For services, the FilteredBy option can be “Name”.
If you enter “paging=(starteq 2, limit eq 3)”, which is not a single integer value, the display is according to index of records. In this case, it shows from the first indexed record to the third indexed record. If you enter "start=2&limit=3", it starts from the second record and displays the next three records in all.
You can specify multiple key:value pairs with the FilteredBy attribute. For example, to get service orders, you can use Get ServiceOrders with Name and State as “filteredby=Name::L3VPN@@State::Invalid”. Similarly, to get service orders, you can use with Name OR state “filteredby=Name::L3VPN!! State::Invalid”.
Output
Sample XML Output
<Comments> Used for multisite LAN connectivity with high BW requirements. </Comments> <CreatedDate>2012-10-23T04:14:26.000Z</CreatedDate> <LastUpdatedDate>2012-10-23T04:14:26.000Z</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> </ServiceDefinition> <ServiceDefinition href= "/api/space/nsas/elan-vpls/service-management/service-definitions/2424852" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/2424852" key="2424852"> <Common> <Name>ELAN-BGP-Dot1Q-SingleVLAN</Name> <Identity>2424852</Identity> <State>Published</State> <Comments> Used to transport single VLAN between multiple sites. </Comments> <CreatedDate>2012-10-23T04:14:32.000Z</CreatedDate> <LastUpdatedDate>2012-10-23T04:14:32.000Z</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> </ServiceDefinition> <ServiceDefinition href= "/api/space/nsas/elan-vpls/service-management/service-definitions/2424872" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/2424872" key="2424872"> <Common> <Name>ELAN-BGP-PortBased-10-100M</Name> <Identity>2424872</Identity> <State>Published</State> <Comments> Used for multisite LAN connectivity with high BW requirements using dedicated ports. </Comments> <CreatedDate>2012-10-23T04:14:32.000Z</CreatedDate> <LastUpdatedDate>2012-10-23T04:14:32.000Z</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> </ServiceDefinition> </ServiceResource> </Data>
Get All E-LAN BGP Service Definitions with Pagination, Search, and Filter
This request is used to retrieve all the configured Layer 2 Ethernet LAN (E-LAN) BGP service definitions with pagination, and to filter the results based on the search criteria
URI | api/space/nsas/elan-vpls/service-management/service-definitions |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects all the configured E-LAN BGP service definitions with pagination applied, and with a filtered result-set that matches the search criteria |
For service orders, you can sort with “sortedby=CreatedDate” and “sortedby=State”.
For Start and Limit attributes, you can provide integer values based on your requirement to sort and filter the API output. Sortorder can be “asc” and “desc”. The SortedBy attribute differs based on the APIs. For service orders, the SortedBy option can be “CtreatedDate”, “State”. For services, the SortedBy option can be “Name”, “LastModifiedDate”. The FilteredBy attribute differs based on the APIs. For service orders, the FilteredBy option can be “Name” and “State”. For services, the FilteredBy option can be “Name”.
If you enter “paging=(starteq 2, limit eq 3)”, which is not a single integer value, the display is according to index of records. In this case, it shows from the first indexed record to the third indexed record. If you enter "start=2&limit=3", it starts from the second record and displays the next three records in all.
You can specify multiple key:value pairs with the FilteredBy attribute. For example, to get service orders, you can use Get ServiceOrders with Name and State as “filteredby=Name::L3VPN@@State::Invalid”. Similarly, to get service orders, you can use with Name OR state “filteredby=Name::L3VPN!! State::Invalid”.
Output
Sample XML Output
<Comments> Used for multisite LAN connectivity with high BW requirements. </Comments> <CreatedDate>2012-10-23T04:14:26.000Z</CreatedDate> <LastUpdatedDate>2012-10-23T04:14:26.000Z</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> </ServiceDefinition> <ServiceDefinition href= "/api/space/nsas/elan-vpls/service-management/service-definitions/2424852" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/2424852" key="2424852"> <Common> <Name>ELAN-BGP-Dot1Q-SingleVLAN</Name> <Identity>2424852</Identity> <State>Published</State> <Comments> Used to transport single VLAN between multiple sites. </Comments> <CreatedDate>2012-10-23T04:14:32.000Z</CreatedDate> <LastUpdatedDate>2012-10-23T04:14:32.000Z</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> </ServiceDefinition> <ServiceDefinition href= "/api/space/nsas/elan-vpls/service-management/service-definitions/2424872" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/2424872" key="2424872"> <Common> <Name>ELAN-BGP-PortBased-10-100M</Name> <Identity>2424872</Identity> <State>Published</State> <Comments> Used for multisite LAN connectivity with high BW requirements using dedicated ports. </Comments> <CreatedDate>2012-10-23T04:14:32.000Z</CreatedDate> <LastUpdatedDate>2012-10-23T04:14:32.000Z</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> </ServiceDefinition> </ServiceResource> </Data>
Get All E-LAN Service Definitions by Filter Criterion
This request is used to retrieve all the configured E-LAN service definitions that match the specified filter criterion. You can filter and retrieve service definitions based on the name, service type, signaling type, and state.
URI | /api/space/nsas/elan-vpls/service-management/service- /api/space/nsas/elan-vpls/service-management/service- /api/space/nsas/elan-vpls/service-management/service- |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects all the configured E-LAN service definitions that match the filter criteria |
For E-Line, IP, and E-LAN service definitions, the FilteredBy option can be Name, ServiceType, Signaling, and State.
Output
Sample XML Output
Get E-LAN BGP Service Definition Details By Definition ID
This request is used to retrieve the details of a particular Layer 2 Ethernet LAN BGP service definition, based on the service definition ID.
URI | api/space/nsas/elan-vpls/service-management/service-definitions/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific E-LAN BGP service definition. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition href="/api/space/nsas/elan-vpls/service-management/service-definitions/1998848" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/1998848" key="1998848"> <Common> <Name>TESTELANVPLS</Name> <Identity>1998848</Identity> <State>Unpublished</State> <CreatedDate>2012-09-20T14:14:20.000+05:30</CreatedDate> <LastUpdatedDate>2012-09-20T14:14:20.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(LDP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <AutoDiscovery>false</AutoDiscovery> <VPLSId>Auto pick</VPLSId> <MACLearning editable="false">Enabled</MACLearning> <MACInterfaceLimit editable="false">1024</MACInterfaceLimit> <MACStatistics editable="false">Not enabled</MACStatistics> <MACTableSize editable="false">5120</MACTableSize> <VlanNormalization>Normalize to Dot1q</VlanNormalization> <AllowMH>Not enabled</AllowMH> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>dot1q</EthernetOption> <VlanIdSelection selection="Select manually" editable="false" /> <TrafficType>Transport single vlan</TrafficType> <VlanIdAuto default="0" min="0" max="0" /> <VlanIdManual default="0" min="0" max="0" /> <PhysicalEncapsulation>flexible-ethernet-services </PhysicalEncapsulation> <LogicalEncapsulation>vlan-vpls</LogicalEncapsulation> <MTU default="1522" editable="false" min="1522" max="9192" /> <EnableRateLimiting>Enabled</EnableRateLimiting> <DefaultBandwidth default="1" editable="true" min="1" max="100" unit="Mbps">1</DefaultBandwidth> <MinBandwidth min="64" max="100000" unit="Kbps">64 </MinBandwidth> <MaxBandwidth min="1" max="100000" unit="Mbps">1 </MaxBandwidth> <Increment default="64" min="64" max="100000" unit="Kbps">64 </Increment> <OuterTagProtocolId editable="false">0x88a8 </OuterTagProtocolId> <InnerTagProtocolId editable="false" /> </ServiceEndPointConfigurationDefinition> <AdvancedSettings> <DisableTunnelService>true</DisableTunnelService> <DisableLocalSwitch>true</DisableLocalSwitch> <FastReroutePriority>low</FastReroutePriority> <LabelBlockSize>8</LabelBlockSize> <ConnetivityType>irb</ConnetivityType> </AdvancedSettings> </ServiceDefinition> </ServiceResource> </Data>
Get E-LAN LDP Service Definition Details By Definition ID
This request is used to retrieve the details of a particular Layer 2 Ethernet LAN LDP service definition, based on the service definition ID.
URI | api/space/nsas/elan-vpls/service-management/service-definitions/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific E-LAN LDP service definition. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition href="/api/space/nsas/elan-vpls/service-management/service-definitions/1376256" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/1376256" key="1376256"> <Common> <Name>VPLSLDP</Name> <Identity>1376256</Identity> <State>Published</State> <CreatedDate>2012-12-14T18:06:06.000+05:30</CreatedDate> <LastUpdatedDate>2012-12-14T18:06:06.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(LDP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <EnableL3Access>true</EnableL3Access> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <AutoDiscovery>false</AutoDiscovery> <VPLSId>Auto pick</VPLSId> <MACLearning editable="false">Enabled</MACLearning> <MACInterfaceLimit editable="false">1024</MACInterfaceLimit> <MACStatistics editable="false">Not enabled</MACStatistics> <MACTableSize editable="false">5120</MACTableSize> <VlanNormalization>Normalize to QinQ</VlanNormalization> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>qinq</EthernetOption> <VlanIdSelection selection="Select manually" editable="false"/> <TrafficType>Transport single vlan</TrafficType> <VlanIdAuto default="0" min="0" max="0"/> <VlanIdManual default="0" min="0" max="0"/> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-vpls</LogicalEncapsulation> <MTU default="1522" editable="false" min="1522" max="9192"/> <EnableRateLimiting>Not enabled</EnableRateLimiting> <DefaultBandwidth default="1" editable="false" min="1" max="100" unit="Mbps">N/A</DefaultBandwidth> <MinBandwidth min="64" max="100000" unit="Kbps">0</MinBandwidth> <MaxBandwidth min="1" max="100000" unit="Mbps">0</MaxBandwidth> <Increment default="64" min="64" max="100000" unit="Kbps">0</Increment> <OuterTagProtocolId editable="false"/> <InnerTagProtocolId editable="false"/> </ServiceEndPointConfigurationDefinition> <AdvancedSettings/> </ServiceDefinition> </ServiceResource> </Data>
Get E-LAN BGP Service Definition Details with Burst Size Calculation By Definition ID
This request is used to retrieve the details of a particular Layer 2 Ethernet LAN BGP service definition with burst size calculation, based on the service definition ID.
URI | api/space/nsas/elan-vpls/service-management/service-definitions/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific E-LAN BGP service definition with burst size calculation. |
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition key="360448" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/360448" href="/api/space/nsas/elan-vpls/service-management/service-definitions/360448"> <Common> <Name>ELAN-BGP-QinQ-AllVLAN</Name> <Identity>360448</Identity> <State>Published</State> <Comments>Used for multisite LAN connectivity with high BW requirements.</Comments> <CreatedDate>2014-07-16T20:11:42.000+05:30</CreatedDate> <LastUpdatedDate>2014-07-16T20:11:42.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <EnableL3Access>false</EnableL3Access> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <RouteTarget editable="true" selection="Auto Pick"/> <RouteDistinguisher selection="Auto pick"/> <MACLearning editable="true">Enabled</MACLearning> <MACInterfaceLimit editable="true">1024</MACInterfaceLimit> <MACStatistics editable="true">Not enabled</MACStatistics> <MACTableSize editable="true">5120</MACTableSize> <VlanNormalization>Not Normalized</VlanNormalization> <AllowMH>Not enabled</AllowMH> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>qinq</EthernetOption> <VlanIdSelection editable="true" selection="Auto pick"/> <TrafficType>Transport all traffic</TrafficType> <VlanIdAuto max="4094" min="1" default="1"/> <VlanIdManual max="0" min="0" default="0"/> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-vpls</LogicalEncapsulation> <MTU max="9192" min="1522" editable="true" default="1522"/> <EnableRateLimiting>Enabled</EnableRateLimiting> <DefaultBandwidth unit="Mbps" max="100" min="1" editable="true" default="1">10</DefaultBandwidth> <MinBandwidth unit="Kbps" max="100000" min="64">10000</MinBandwidth> <MaxBandwidth unit="Mbps" max="100000" min="1">100</MaxBandwidth> <Increment unit="Kbps" max="100000" min="64" default="64">10000</Increment> <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType> <MTUFactor editable="true">10</MTUFactor> </ServiceEndPointConfigurationDefinition> <AdvancedSettings/> </ServiceDefinition> </ServiceResource> </Data>
Get E-LAN LDP Service Definition Details with Burst Size Calculation By Definition ID
This request is used to retrieve the details of a particular Layer 2 Ethernet LAN LDP service definition with burst size calculation, based on the service definition ID.
URI | api/space/nsas/elan-vpls/service-management/service-definitions/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific E-LAN LDP service definition with burst size calculation. |
Output (CalculateBurstSize MTU Based):
Sample XML Output
<? Xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition key="1900663" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/1900663" href="/api/space/nsas/elan-vpls/service-management/service-definitions/1900663"> <Common> <Name>VPLS_QinQ_MTU_Based</Name> <Identity>1900663</Identity> <State>Unpublished</State> <Comments>werewr</Comments> <CreatedDate>2014-06-23T17:49:12.000+05:30</CreatedDate> <LastUpdatedDate>2014-06-23T17:49:12.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(LDP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <EnableL3Access>false</EnableL3Access> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <RouteTarget editable="false" selection="Auto Pick"/> <RouteDistinguisher selection="Auto pick"/> <AutoDiscovery>true</AutoDiscovery> <MACLearning editable="false">Enabled</MACLearning> <MACInterfaceLimit editable="false">1024</MACInterfaceLimit> <MACStatistics editable="false">Not enabled</MACStatistics> <MACTableSize editable="false">5120</MACTableSize> <VlanNormalization>Normalize All</VlanNormalization> <AllowMH>Not enabled</AllowMH> <VPNId selection="Auto pick"/> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>qinq</EthernetOption> <VlanIdSelection editable="false" selection="Auto pick"/> <TrafficType>Transport single vlan</TrafficType> <VlanIdAuto max="0" min="0" default="0"/> <VlanIdManual max="0" min="0" default="0"/> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-vpls</LogicalEncapsulation> <MTU max="9192" min="1522" editable="true" default="1522"/> <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType> <MTUFactor editable="true">10</MTUFactor> <EnableRateLimiting>Enabled</EnableRateLimiting> <DefaultBandwidth unit="Mbps" max="100" min="1" editable="true" default="1">10</DefaultBandwidth> <MinBandwidth unit="Kbps" max="100000" min="64">1000</MinBandwidth> <MaxBandwidth unit="Mbps" max="100000" min="1">100</MaxBandwidth> <Increment unit="Kbps" max="100000" min="64" default="64">1000</Increment> <OuterTagProtocolId editable="false">0x88a8</OuterTagProtocolId> <InnerTagProtocolId editable="false">0x9100</InnerTagProtocolId> </ServiceEndPointConfigurationDefinition> <AdvancedSettings/> </ServiceDefinition> </ServiceResource> </Data>
Output (CalculateBurstSize Line-Rate Based):
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition key="1900663" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/1900663" href="/api/space/nsas/elan-vpls/service-management/service-definitions/1900663"> <Common> <Name>VPLS_QinQ_MTU_Based</Name> <Identity>1900663</Identity> <State>Unpublished</State> <Comments>werewr</Comments> <CreatedDate>2014-06-23T17:49:12.000+05:30</CreatedDate> <LastUpdatedDate>2014-06-23T17:49:12.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(LDP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <EnableL3Access>false</EnableL3Access> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <RouteTarget editable="false" selection="Auto Pick"/> <RouteDistinguisher selection="Auto pick"/> <AutoDiscovery>true</AutoDiscovery> <MACLearning editable="false">Enabled</MACLearning> <MACInterfaceLimit editable="false">1024</MACInterfaceLimit> <MACStatistics editable="false">Not enabled</MACStatistics> <MACTableSize editable="false">5120</MACTableSize> <VlanNormalization>Normalize All</VlanNormalization> <AllowMH>Not enabled</AllowMH> <VPNId selection="Auto pick"/> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>qinq</EthernetOption> <VlanIdSelection editable="false" selection="Auto pick"/> <TrafficType>Transport single vlan</TrafficType> <VlanIdAuto max="0" min="0" default="0"/> <VlanIdManual max="0" min="0" default="0"/> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-vpls</LogicalEncapsulation> <MTU max="9192" min="1522" editable="true" default="1522"/> <CalculateBurstSizeType>Line Rate Based</CalculateBurstSizeType> <BurstPeriod editable="true">10</BurstPeriod> <EnableRateLimiting>Enabled</EnableRateLimiting> <DefaultBandwidth unit="Mbps" max="100" min="1" editable="true" default="1">10</DefaultBandwidth> <MinBandwidth unit="Kbps" max="100000" min="64">1000</MinBandwidth> <MaxBandwidth unit="Mbps" max="100000" min="1">100</MaxBandwidth> <Increment unit="Kbps" max="100000" min="64" default="64">1000</Increment> <OuterTagProtocolId editable="false">0x88a8</OuterTagProtocolId> <InnerTagProtocolId editable="false">0x9100</InnerTagProtocolId> </ServiceEndPointConfigurationDefinition> <AdvancedSettings/> </ServiceDefinition> </ServiceResource> </Data>
Get E-LAN LDP Point-to-Multipoint Service Definition Details with Pseudowire Stitching By Definition ID
This request is used to retrieve the details of a particular Layer 2 Ethernet LAN LDP point-to-multipoint service definition with pseudowire stitching, based on the service definition ID.
URI | api/space/nsas/elan-vpls/service-management/service-definitions/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific E-LAN LDP point-to-multipoint service definition with pseudowire stitching. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition href="/api/space/nsas/elan-vpls/service-management/service-definitions/950272" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/950272" key="950272"> <Common> <Name>vpls_ldp_p2m_p2pStitchSd</Name> <Identity>950272</Identity> <State>Published</State> <CreatedDate>2013-02-12T14:38:49.000+05:30</CreatedDate> <LastUpdatedDate>2013-02-12T14:38:49.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(LDP)</ServiceType> <InterfaceType>VPLS (Point-MultiPoint)</InterfaceType> <EnableL3Access>false</EnableL3Access> <PWExtension>Enabled</PWExtension> <PWResiliency>Not Enabled</PWResiliency> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <AutoDiscovery>false</AutoDiscovery> <VPLSId>Auto pick</VPLSId> <MACLearning editable="true">Enabled</MACLearning> <MACInterfaceLimit editable="true">1024 </MACInterfaceLimit> <MACStatistics editable="true">Not enabled</MACStatistics> <MACTableSize editable="true">5120</MACTableSize> <VlanNormalization>Normalize to QinQ</VlanNormalization> <AllowMH>Not enabled</AllowMH> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>qinq</EthernetOption> <VlanIdSelection selection="Auto pick" editable="true" /> <TrafficType>Transport single vlan</TrafficType> <VlanIdAuto default="0" min="0" max="0" /> <VlanIdManual default="0" min="0" max="0" /> <PhysicalEncapsulation>flexible-ethernet-services </PhysicalEncapsulation> <LogicalEncapsulation>vlan-vpls</LogicalEncapsulation> <LDPPwExtensionSettings> <PhysicalEncapsulation>vlan-ccc</PhysicalEncapsulation> <LogicalEncapsulation>vlan-ccc</LogicalEncapsulation> </LDPPwExtensionSettings> <MTU default="1522" editable="true" min="1522" max="9192" /> <EnableRateLimiting>Enabled</EnableRateLimiting> <DefaultBandwidth default="1" editable="true" min="1" max="100" unit="Mbps">10</DefaultBandwidth> <MinBandwidth min="64" max="100000" unit="Kbps">1000 </MinBandwidth> <MaxBandwidth min="1" max="100000" unit="Mbps">100 </MaxBandwidth> <Increment default="64" min="64" max="100000" unit="Kbps">1000 </Increment> </ServiceEndPointConfigurationDefinition> <AdvancedSettings /> </ServiceDefinition> </ServiceResource> </Data>
Get E-LAN BGP Point-to-Multipoint Service Definition Details with Pseudowire Stitching By Definition ID
This request is used to retrieve the details of a particular Layer 2 Ethernet LAN BGP service definition with pseudowire stitching, based on the service definition ID.
URI | api/space/nsas/elan-vpls/service-management/service-definitions/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific E-LAN BGP service definition with pseudowire stitching. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition href="/api/space/nsas/elan-vpls/service-management/service-definitions/1442020" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/1442020" key="1442020"> <Common> <Name>vpls_p2m_bgp_sd</Name> <Identity>1442020</Identity> <State>Published</State> <CreatedDate>2013-02-19T11:50:41.000+05:30</CreatedDate> <LastUpdatedDate>2013-02-19T11:50:41.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (Point-MultiPoint)</InterfaceType> <EnableL3Access>false</EnableL3Access> <PWExtension>Enabled</PWExtension> <PWResiliency>Not Enabled</PWResiliency> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <VCID>Select manually</VCID> <RouteTarget selection="Auto Pick" editable="false" /> <RouteDistinguisher selection="Auto pick" /> <MACLearning editable="true">Enabled</MACLearning> <MACInterfaceLimit editable="true">1024 </MACInterfaceLimit> <MACStatistics editable="true">Not enabled</MACStatistics> <MACTableSize editable="true">5120</MACTableSize> <VlanNormalization>Normalize to QinQ</VlanNormalization> <AllowMH>Not enabled</AllowMH> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>qinq</EthernetOption> <VlanIdSelection selection="Select manually" editable="true" /> <TrafficType>Transport single vlan</TrafficType> <VlanIdAuto default="0" min="0" max="0" /> <VlanIdManual default="0" min="0" max="0" /> <PhysicalEncapsulation>flexible-ethernet-services </PhysicalEncapsulation> <LogicalEncapsulation>vlan-vpls</LogicalEncapsulation> <LDPPwExtensionSettings> <PhysicalEncapsulation>extended-vlan-ccc</PhysicalEncapsulation> <LogicalEncapsulation>extended-vlan-ccc</LogicalEncapsulation> </LDPPwExtensionSettings> <MTU default="1522" editable="true" min="1522" max="9192" /> <EnableRateLimiting>Enabled</EnableRateLimiting> <DefaultBandwidth default="1" editable="true" min="1" max="100" unit="Mbps">10</DefaultBandwidth> <MinBandwidth min="64" max="100000" unit="Kbps">1000 </MinBandwidth> <MaxBandwidth min="1" max="100000" unit="Mbps">100 </MaxBandwidth> <Increment default="64" min="64" max="100000" unit="Kbps">1000 </Increment> </ServiceEndPointConfigurationDefinition> <AdvancedSettings /> </ServiceDefinition> </ServiceResource> </Data>
Get E-LAN Service Definition Details with Manual Route Target By Definition ID
This request is used to retrieve the details of a particular Layer 2 Ethernet LAN service definition with manual route target, based on the service definition ID.
URI | api/space/nsas/elan-vpls/service-management/service-definitions/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific E-LAN service definition with manual route target.. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition href="/api/space/nsas/elan-vpls/service-management/service-definitions/1540096" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/1540096" key="1540096"> <Common> <Name>ManualRT</Name> <Identity>1540096</Identity> <State>Published</State> <CreatedDate>2013-02-25T17:34:06.000+05:30</CreatedDate> <LastUpdatedDate>2013-02-25T17:34:06.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <EnableL3Access>false</EnableL3Access> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <RouteTarget selection="Select manually" editable="true" /> <RouteDistinguisher selection="Auto pick" /> <MACLearning editable="false">Enabled</MACLearning> <MACInterfaceLimit editable="false">1024</MACInterfaceLimit> <MACStatistics editable="false">Not enabled</MACStatistics> <MACTableSize editable="false">5120</MACTableSize> <VlanNormalization>Normalize to Dot1q</VlanNormalization> <AllowMH>Not enabled</AllowMH> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>dot1q</EthernetOption> <VlanIdSelection selection="Auto pick" editable="false" /> <TrafficType>Transport single vlan</TrafficType> <VlanIdAuto default="0" min="0" max="0" /> <VlanIdManual default="0" min="0" max="0" /> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-vpls</LogicalEncapsulation> <MTU default="1522" editable="false" min="1522" max="9192" /> <EnableRateLimiting>Not enabled</EnableRateLimiting> <DefaultBandwidth default="1" editable="false" min="1" max="100" unit="Mbps">N/A</DefaultBandwidth> <MinBandwidth min="64" max="100000" unit="Kbps">0</MinBandwidth> <MaxBandwidth min="1" max="100000" unit="Mbps">0</MaxBandwidth> <Increment default="64" min="64" max="100000" unit="Kbps">0</Increment> </ServiceEndPointConfigurationDefinition> <AdvancedSettings /> </ServiceDefinition> </ServiceResource> </Data>
Create an E-LAN BGP Service Definition (without various instance types and multihoming support)
This request is used to create an E-LAN BGP service definition.
URI | api/space/nsas/elan-vpls/service-management/service-definitions/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an E-LAN BGP service definition. |
Input
Sample XML Input
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <ServiceResource> <ServiceDefinition> <Common> <Name>VPLS-Service-Def-Testing-1</Name> </Common> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <ServiceType>VPLS(BGP)</ServiceType> <ServiceTemplates> <ServiceTemplate> <Name>Test_Template</Name> <ID>819232</ID> </ServiceTemplate> </ServiceTemplates> <QosEnabled>false</QosEnabled> <EnableL3Access>false</EnableL3Access> <ServiceElementConfigurationDefinition xsi:type="VPLSServiceEndpointGroupParameterDefType"> <RouteTarget selection="Auto Pick" editable="true">Auto pick</RouteTarget> <RouteDistinguisher>Auto pick</RouteDistinguisher> <VlanNormalization>Normalization not required</VlanNormalization> <AllowMH>Not Enabled</AllowMH> <MACLearning editable="true">Enabled</MACLearning> <MACInterfaceLimit editable="true">1024</MACInterfaceLimit> <MACStatistics editable="true">Not Enabled</MACStatistics> <MACTableSize editable="true">5120</MACTableSize> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>qinq</EthernetOption> <TrafficType>Transport all traffic</TrafficType> <VlanIdSelection selection="Auto pick" editable="true" >Auto pick</VlanIdSelection> <VlanIdAuto default="1" min="1" max="4094" /> <VlanIdManual default="0" min="0" max="0" /> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-vpls</LogicalEncapsulation> <MTU default="1522" editable="true" min="1522" max="9192">1522</MTU> <EnableRateLimiting>Enabled</EnableRateLimiting> <DefaultBandwidth default="1" editable="true" min="1" max="100" unit="Mbps">10</DefaultBandwidth> <MinBandwidth min="64" max="100000" unit="Kbps">10000</MinBandwidth> <MaxBandwidth min="1" max="100000" unit="Mbps">1</MaxBandwidth> <Increment default="64" min="64" max="100000" unit="Kbps">10000</Increment> </ServiceEndPointConfigurationDefinition> <AdvancedSettings> <DisableTunnelService editable="true">true</DisableTunnelService> <DisableLocalSwitch editable="true">true</DisableLocalSwitch> <FastReroutePriority editable="false">medium</FastReroutePriority> <LabelBlockSize editable="true">2</LabelBlockSize> <ConnetivityType editable="false">ce</ConnetivityType> </AdvancedSettings> </ServiceDefinition> </ServiceResource> </Data>
Output
Sample XML Output
<Data> <Status> <Identity> <Type>Service Definition</Type> <Value>361108</Value> </Identity> <Code>200</Code> <Message> ServiceDefinition Created Successfully </Message> </Status> </Data>
Create an E-LAN BGP Service Definition (with various instance types and multihoming support)
This request is used to create an E-LAN BGP service definition.
URI | api/space/nsas/csd/service-definition |
HTTP Method | POST |
Content-Type | application/xml |
Consumes | application/xml |
Produces | Creates an E-LAN BGP service definition. |
Input
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition> <Common> <Name>test</Name> <Comments></Comments> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <InstanceType>evpn</InstanceType> <Protocol>evpn-etree</Protocol> <UseCount>0</UseCount> <EnableL3Access>false</EnableL3Access> <StaticpseudoWire>undefined</StaticpseudoWire> <QosEnabled></QosEnabled> <EnableMultihoming>true</EnableMultihoming> <MultihomingMode>single-active</MultihomingMode> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <RouteTarget selection="Auto Pick" editable="false"/> <RouteDistinguisher selection="Auto pick" editable="false"/> <VlanNormalization>Normalization not required</VlanNormalization> <MACLearning editable="true">Enabled</MACLearning> <MACStatistics editable="true">Enabled</MACStatistics> <MACTableSize editable="true">5120</MACTableSize> <MACInterfaceLimit editable="true">1024</MACInterfaceLimit> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption editable="undefined">asymmetric tag depth</EthernetOption> <VlanIdSelection selection="Select manually" editable="false"/> <VlanIdManual max="4094" min="1" default="1" /> <TrafficType>Transport vlan list</TrafficType> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-bridge</LogicalEncapsulation> <OuterTagProtocolId editable="true">0x88a8</OuterTagProtocolId> <MTU max="9192" min="1522" editable="true" default="1522"/> <EnableRateLimiting>Enabled</EnableRateLimiting> <DefaultBandwidth unit="Mbps" max="100" min="1" editable="true" default ="1">10</DefaultBandwidth> <MinBandwidth unit="Kbps" max="100000" min="64">1</MinBandwidth> <MaxBandwidth unit="Mbps" max="100000" min="1">10000</MaxBandwidth> <Increment unit="Kbps" max="100000" min="64" default="64">1000</Increment> <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType> <MTUFactor editable="true">10</MTUFactor> </ServiceEndPointConfigurationDefinition> <AdvancedSettings xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSAdvanceEndPointConfigParameterDefType"> </AdvancedSettings> </ServiceDefinition> </ServiceResource> </Data>
Create an E-LAN Service Definition
This request is used to create an E-LAN service definition.
URI | api/space/nsas/elan-vpls/service-management/service-definitions/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an E-LAN service definition. |
Input
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition> <Common> <Name>ELAN-BGP-QinQ-AllVLAN_Sample</Name> <Comments>Used for multisite LAN connectivity with high BW requirements.</Comments> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <EnableL3Access>false</EnableL3Access> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <RouteTarget editable="true" selection="Auto Pick"/> <RouteDistinguisher selection="Auto pick"/> <MACLearning editable="true">Enabled</MACLearning> <MACInterfaceLimit editable="true">1024</MACInterfaceLimit> <MACStatistics editable="true">Not enabled</MACStatistics> <MACTableSize editable="true">5120</MACTableSize> <VlanNormalization>Normalization not required</VlanNormalization> <AllowMH>Not enabled</AllowMH> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>qinq</EthernetOption> <VlanIdSelection editable="true" selection="Auto pick"/> <TrafficType>Transport all traffic</TrafficType> <VlanIdAuto max="4094" min="1" default="1"/> <VlanIdManual max="0" min="0" default="0"/> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-vpls</LogicalEncapsulation> <MTU max="9192" min="1522" editable="true" default="1522"/> <EnableRateLimiting>Enabled</EnableRateLimiting> <DefaultBandwidth unit="Mbps" max="100" min="1" editable="true" default="1">10</DefaultBandwidth> <MinBandwidth unit="Kbps" max="100000" min="64">10000</MinBandwidth> <MaxBandwidth unit="Mbps" max="100000" min="1">100</MaxBandwidth> <Increment unit="Kbps" max="100000" min="64" default="64">10000</Increment> <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType> <MTUFactor editable="true">10</MTUFactor> </ServiceEndPointConfigurationDefinition> <AdvancedSettings/> </ServiceDefinition> </ServiceResource> </Data>
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>Service Definition</Type> <Value>1900664</Value> </Identity> <Code>200</Code> <Message>ServiceDefinition Created Successfully</Message> </Status> </Data>
Create an E-LAN Service Definition for vpls Instance and vpls Protocol Types
This request is used to create an E-LAN service definition with vpls as the instance and protocol type.
URL | /api/space/nsas/csd/service-definition |
Sample URL | https://192.0.2.10:8080/api/space/nsas/csd/service-definition |
HTTP Method | POST |
Accept Header | application/xml |
Content Type | application/xml; |
Request
""<Data xmlns=""services.schema.networkapi.jmp.juniper.net""> <ServiceResource> <ServiceDefinition> <Common> <Name>Multihoming</Name> <Comments></Comments> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InstanceType>VPLS</InstanceType> <Protocol>VPLS</Protocol> <EnableMultihoming>true</EnableMultihoming> <MultihomingMode>single-active</MultihomingMode> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <UseCount>0</UseCount> <EnableL3Access>false</EnableL3Access> <StaticpseudoWire>undefined</StaticpseudoWire> <QosEnabled></QosEnabled> <ServiceElementConfigurationDefinition xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""VPLSServiceEndpointGroupParameterDefType""> <RouteTarget selection=""Auto Pick"" editable=""false"" /> <RouteDistinguisher selection=""Auto pick"" editable=""false"" /> <AllowMH>Not enabled</AllowMH> <VlanNormalization>Normalize to Dot1q tag</VlanNormalization> <MACLearning editable=""false"">Not Enabled</MACLearning> <MACStatistics editable=""false"">Not enabled</MACStatistics> <MACTableSize editable=""false"">5120</MACTableSize> <MACInterfaceLimit editable=""false"">1024</MACInterfaceLimit> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""VPLSEndPointParameterDefType""> <EthernetOption editable=""undefined"">dot1q</EthernetOption> <VlanIdSelection selection=""Select manually"" editable=""false"" /> <VlanIdManual max=""4094"" min=""1"" default=""1"" /> <TrafficType>Transport single vlan</TrafficType> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-vpls</LogicalEncapsulation> <MTU max=""undefined"" min="""" editable=""false"" default=""1522"" /> <EnableRateLimiting>Enabled</EnableRateLimiting> <DefaultBandwidth unit=""Mbps"" max=""100"" min=""1"" editable=""false"" default=""1"">10</DefaultBandwidth> <MinBandwidth unit=""Kbps"" max=""100000"" min=""64""></MinBandwidth> <MaxBandwidth unit=""Mbps"" max=""100000"" min=""1"">undefined</MaxBandwidth> <Increment unit=""Kbps"" max=""100000"" min=""64"" default=""64""></Increment> <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType> <MTUFactor editable=""false"">10</MTUFactor> </ServiceEndPointConfigurationDefinition> <AdvancedSettings xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""VPLSAdvanceEndPointConfigParameterDefType""></AdvancedSettings> </ServiceDefinition> </ServiceResource> </Data>" "
Supported Instance Types and Protocols
Instance Type - vlps
Protocol - vlps
Instance Type - virtual-switch
Protocol - vpls, evpn, evpn-etree
Instance Type - evpn
Protocol - evpn, evpn-etree
Response
""<Data> <Status> <Identity> <Type>Service Definition</Type> <Value>18350080</Value> </Identity> <Code>200</Code> <Message>ServiceDefinition Created Successfully</Message> </Status> </Data>" "
Create an E-LAN BGP Service Definition with Burst Size
This request is used to create an E-LAN BGP service definition with burst size configured.
URI | api/space/nsas/elan-vpls/service-management/service-definitions/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an E-LAN LDP service definition with burst size. |
Input (MTU-Based Burst Size)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition> <Common> <Name>VPLS_QinQ_MTU_Based </Name> <Comments>werewr</Comments> </Common> <ServiceType>VPLS(LDP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <EnableL3Access>false</EnableL3Access> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <RouteTarget editable="false" selection="Auto Pick"/> <RouteDistinguisher selection="Auto pick"/> <AutoDiscovery>true</AutoDiscovery> <MACLearning editable="false">Enabled</MACLearning> <MACInterfaceLimit editable="false">1024</MACInterfaceLimit> <MACStatistics editable="false">Not enabled</MACStatistics> <MACTableSize editable="false">5120</MACTableSize> <VlanNormalization>Normalize to VLAN all</VlanNormalization> <AllowMH>Not enabled</AllowMH> <VPNId selection="Auto pick"/> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>qinq</EthernetOption> <VlanIdSelection editable="false" selection="Auto pick"/> <TrafficType>Transport single vlan</TrafficType> <VlanIdAuto max="0" min="0" default="0"/> <VlanIdManual max="0" min="0" default="0"/> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-vpls</LogicalEncapsulation> <MTU max="9192" min="1522" editable="true" default="1522"/> <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType> <MTUFactor editable="true">10</MTUFactor> <EnableRateLimiting>Enabled</EnableRateLimiting> <DefaultBandwidth unit="Mbps" max="100" min="1" editable="true" default="1">10</DefaultBandwidth> <MinBandwidth unit="Kbps" max="100000" min="64">1000</MinBandwidth> <MaxBandwidth unit="Mbps" max="100000" min="1">100</MaxBandwidth> <Increment unit="Kbps" max="100000" min="64" default="64">1000</Increment> <OuterTagProtocolId editable="false">0x88a8</OuterTagProtocolId> <InnerTagProtocolId editable="false">0x9100</InnerTagProtocolId> </ServiceEndPointConfigurationDefinition> <AdvancedSettings/> </ServiceDefinition> </ServiceResource> </Data>
Input (Line Rate-Based Burst Size)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition> <Common> <Name>VPLS_QinQ_MTU_Based </Name> <Comments>werewr</Comments> </Common> <ServiceType>VPLS(LDP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <EnableL3Access>false</EnableL3Access> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <RouteTarget editable="false" selection="Auto Pick"/> <RouteDistinguisher selection="Auto pick"/> <AutoDiscovery>true</AutoDiscovery> <MACLearning editable="false">Enabled</MACLearning> <MACInterfaceLimit editable="false">1024</MACInterfaceLimit> <MACStatistics editable="false">Not enabled</MACStatistics> <MACTableSize editable="false">5120</MACTableSize> <VlanNormalization>Normalize to VLAN all</VlanNormalization> <AllowMH>Not enabled</AllowMH> <VPNId selection="Auto pick"/> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>qinq</EthernetOption> <VlanIdSelection editable="false" selection="Auto pick"/> <TrafficType>Transport single vlan</TrafficType> <VlanIdAuto max="0" min="0" default="0"/> <VlanIdManual max="0" min="0" default="0"/> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-vpls</LogicalEncapsulation> <MTU max="9192" min="1522" editable="true" default="1522"/> <CalculateBurstSizeType>Line Rate Based</CalculateBurstSizeType> <BurstPeriod editable="true">10</BurstPeriod> <EnableRateLimiting>Enabled</EnableRateLimiting> <DefaultBandwidth unit="Mbps" max="100" min="1" editable="true" default="1">10</DefaultBandwidth> <MinBandwidth unit="Kbps" max="100000" min="64">1000</MinBandwidth> <MaxBandwidth unit="Mbps" max="100000" min="1">100</MaxBandwidth> <Increment unit="Kbps" max="100000" min="64" default="64">1000</Increment> <OuterTagProtocolId editable="false">0x88a8</OuterTagProtocolId> <InnerTagProtocolId editable="false">0x9100</InnerTagProtocolId> </ServiceEndPointConfigurationDefinition> <AdvancedSettings/> </ServiceDefinition> </ServiceResource> </Data>
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>Service Definition</Type> <Value>1900664</Value> </Identity> <Code>200</Code> <Message>ServiceDefinition Created Successfully</Message> </Status> </Data>
Publish and Unpublish an E-LAN BGP Service Definition
This request is used to publish or unpublish an E-LAN BGP service definition.
URI | api/space/nsas/elan-vpls/service-management/service-definitions/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service-management. |
Consumes | application/vnd.net.juniper.space.service-management. Action types are Publish and Unpublish. |
Produces | Publishes or unpublishes an E-LAN BGP service definition. |
Input for Unpublishing a Service Definition
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceDefinitionCustomActionType"> <Action>UnPublish</Action> </CustomAction> </Data>
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceDefinition</Type> <Value>7012365</Value> </Identity> <Code>200</Code> <Message>ServiceDefinition UnPublished Successfully</Message> </Status> </Data>
Input for Publishing a Service Definition
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <CustomAction xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="ServiceDefinitionCustomActionType"> <Action>Publish</Action> </CustomAction> </Data>
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceDefinition</Type> <Value>7012365</Value> </Identity> <Code>200</Code> <Message>ServiceDefinition Published Successfully</Message> </Status> </Data>
Delete an E-LAN BGP Service Definition
This request is used to delete a previously configured E-LAN BGP service definition.
URI | api/space/nsas/elan-vpls/service-management/service-definitions/ |
HTTP Method | DELETE |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Deletes an E-LAN BGP service definition. |
Output
Sample XML Output
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceDefinition</Type> <Value>7012365</Value> </Identity> <Code>200</Code> <Message>ServiceDefinition Deleted Successfully</Message> </Status> </Data>
Get an E-LAN Service Definition with Default Service Template By Definition ID
This request is used to retrieve the details of a particular E-LAN service definition with default service template, based on the service definition ID.
URI | api/space/nsas/elan-vpls/service-management/service-definitions/ |
HTTP Method | GET |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Collects the details of a specific E-LAN service definition with default service template. |
Output (E-LAN BGP)
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition key="1048576" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/1048576" href="/api/space/nsas/elan-vpls/service-management/service-definitions/1048576"> <Common> <Name>Test_VPLSBGP_SD_API</Name> <Identity>1048576</Identity> <State>Unpublished</State> <CreatedDate>2015-02-23T16:05:58.000+05:30</CreatedDate> <LastUpdatedDate>2015-02-23T16:05:58.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <EnableL3Access>false</EnableL3Access> <ServiceTemplates> <ServiceTemplate href="/api/space/nsas/elan-vpls/service-management/service-templates/950272" uri="/api/space/nsas/elan-vpls/service-management/service-templates/950272" key="/api/space/nsas/elan-vpls/service-management/service-templates/950272"> <ID>950272</ID> <Name>ST with _Descp_P2P</Name> <Default>false</Default> </ServiceTemplate> <ServiceTemplate href="/api/space/nsas/elan-vpls/service-management/service-templates/950296" uri="/api/space/nsas/elan-vpls/service-management/service-templates/950296" key="/api/space/nsas/elan-vpls/service-management/service-templates/950296"> <ID>950296</ID> <Name>Flexi_Temp</Name> <Default>false</Default> </ServiceTemplate> </ServiceTemplates> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <RouteTarget editable="false" selection="Auto Pick"/> <RouteDistinguisher selection="Auto pick"/> <MACLearning editable="false">Enabled</MACLearning> <MACInterfaceLimit editable="false">1024</MACInterfaceLimit> <MACStatistics editable="false">Not enabled</MACStatistics> <MACTableSize editable="false">5120</MACTableSize> <VlanNormalization>Normalize to Dot1q tag</VlanNormalization> <AllowMH>Not enabled</AllowMH> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>port-port</EthernetOption> <VlanIdSelection editable="false" selection="N/A"/> <TrafficType>N/A</TrafficType> <VlanIdAuto max="0" min="0" default="0"/> <VlanIdManual max="0" min="0" default="0"/> <PhysicalEncapsulation>ethernet-vpls</PhysicalEncapsulation> <LogicalEncapsulation>N/A</LogicalEncapsulation> <MTU max="9192" min="1522" editable="false" default="1522"/> <EnableRateLimiting>Not enabled</EnableRateLimiting> <DefaultBandwidth unit="Mbps" max="100" min="1" editable="false" default="1">N/A</DefaultBandwidth> <MinBandwidth unit="Kbps" max="100000" min="64">0</MinBandwidth> <MaxBandwidth unit="Mbps" max="100000" min="1">0</MaxBandwidth> <Increment unit="Kbps" max="100000" min="64" default="64">0</Increment> <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType> <MTUFactor editable="false">10</MTUFactor> </ServiceEndPointConfigurationDefinition> <AdvancedSettings/> </ServiceDefinition> </ServiceResource> </Data>
Output (E-LAN LDP)
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition key="1048611" uri="/api/space/nsas/elan-vpls/service-management/service-definitions/1048611" href="/api/space/nsas/elan-vpls/service-management/service-definitions/1048611"> <Common> <Name>testVPLS_LDP_SD_API</Name> <Identity>1048611</Identity> <State>Unpublished</State> <CreatedDate>2015-02-23T16:08:37.000+05:30</CreatedDate> <LastUpdatedDate>2015-02-23T16:08:37.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(LDP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <EnableL3Access>false</EnableL3Access> <ServiceTemplates> <ServiceTemplate href="/api/space/nsas/elan-vpls/service-management/service-templates/950272" uri="/api/space/nsas/elan-vpls/service-management/service-templates/950272" key="/api/space/nsas/elan-vpls/service-management/service-templates/950272"> <ID>950272</ID> <Name>ST with _Descp_P2P</Name> <Default>false</Default> </ServiceTemplate> <ServiceTemplate href="/api/space/nsas/elan-vpls/service-management/service-templates/950296" uri="/api/space/nsas/elan-vpls/service-management/service-templates/950296" key="/api/space/nsas/elan-vpls/service-management/service-templates/950296"> <ID>950296</ID> <Name>Flexi_Temp</Name> <Default>true</Default> </ServiceTemplate> </ServiceTemplates> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <AutoDiscovery>false</AutoDiscovery> <VPLSId>Auto pick</VPLSId> <MACLearning editable="false">Enabled</MACLearning> <MACInterfaceLimit editable="false">1024</MACInterfaceLimit> <MACStatistics editable="false">Not enabled</MACStatistics> <MACTableSize editable="false">5120</MACTableSize> <VlanNormalization>Normalize to Dot1q tag</VlanNormalization> <AllowMH>Not enabled</AllowMH> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>port-port</EthernetOption> <VlanIdSelection editable="false" selection="N/A"/> <TrafficType>N/A</TrafficType> <VlanIdAuto max="0" min="0" default="0"/> <VlanIdManual max="0" min="0" default="0"/> <PhysicalEncapsulation>ethernet-vpls</PhysicalEncapsulation> <LogicalEncapsulation>N/A</LogicalEncapsulation> <MTU max="9192" min="1522" editable="false" default="1522"/> <EnableRateLimiting>Not enabled</EnableRateLimiting> <DefaultBandwidth unit="Mbps" max="100" min="1" editable="false" default="1">N/A</DefaultBandwidth> <MinBandwidth unit="Kbps" max="100000" min="64">0</MinBandwidth> <MaxBandwidth unit="Mbps" max="100000" min="1">0</MaxBandwidth> <Increment unit="Kbps" max="100000" min="64" default="64">0</Increment> <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType> <MTUFactor editable="false">10</MTUFactor> </ServiceEndPointConfigurationDefinition> <AdvancedSettings/> </ServiceDefinition> </ServiceResource> </Data>
GET E-LAN Service Definition for vpls Instance and vpls Protocol Types
This request is used to retrieve the details of a particular E-LAN service definition with vpls as the instance and protocol type.
URL | /api/space/nsas/csd/service-definition/<definitionId> |
Sample URL | https://192.0.2.10:8080/api/space/nsas/csd/service-definition/2134456 |
HTTP Method | GET |
Accept Header | application/xml; |
Content Type | application/xml; |
Request
Not Applicable
Response
" " <?xml version=""1.0"" encoding=""UTF-8"" standalone=""yes""?> <Data xmlns=""services.schema.networkapi.jmp.juniper.net""> <ServiceResource> <ServiceDefinition key=""18350080"" uri=""/api/space/nsas/elan-vpls/service-management/service-definitions/18350080"" href=""/api/space/nsas/elan-vpls/service-management/service-definitions/18350080""> <Common> <Name>Multihoming7</Name> <Identity>18350080</Identity> <State>Unpublished</State> <CreatedDate>2017-09-01T11:25:40.000+05:30</CreatedDate> <LastUpdatedDate>2017-09-01T11:25:40.000+05:30</LastUpdatedDate> <CreatedBy>super</CreatedBy> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InstanceType>VPLS</InstanceType> <Protocol>VPLS</Protocol> <EnableMultihoming>true</EnableMultihoming> <MultihomingMode>single-active</MultihomingMode> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <StaticpseudoWire>false</StaticpseudoWire> <EnableL3Access>false</EnableL3Access> <QosEnabled>false</QosEnabled> <ServiceElementConfigurationDefinition xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""VPLSServiceEndpointGroupParameterDefType""> <RouteTarget editable=""false"" selection=""Auto Pick""/> <RouteDistinguisher editable=""false"" selection=""Auto pick""/> <MACLearning editable=""false"">Not Enabled</MACLearning> <MACInterfaceLimit editable=""false"">1024</MACInterfaceLimit> <MACStatistics editable=""false"">Not enabled</MACStatistics> <MACTableSize editable=""false"">5120</MACTableSize> <VlanNormalization>Normalize to Dot1q tag</VlanNormalization> <AllowMH>Enabled</AllowMH> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""VPLSEndPointParameterDefType""> <EthernetOption>dot1q</EthernetOption> <VlanIdSelection editable=""false"" selection=""Select manually""/> <TrafficType>Transport single vlan</TrafficType> <VlanIdAuto max=""0"" min=""0"" default=""0""/> <VlanIdManual max=""4094"" min=""1"" default=""1""/> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-vpls</LogicalEncapsulation> <MTU max=""9192"" min=""1522"" editable=""false"" default=""1522""/> <EnableRateLimiting>Enabled</EnableRateLimiting> <DefaultBandwidth unit=""Mbps"" max=""100"" min=""1"" editable=""false"" default=""1"">10</DefaultBandwidth> <MinBandwidth unit=""Kbps"" max=""100000"" min=""64"">0</MinBandwidth> <MaxBandwidth unit=""Mbps"" max=""100000"" min=""1"">0</MaxBandwidth> <Increment unit=""Kbps"" max=""100000"" min=""64"" default=""64"">0</Increment> <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType> <MTUFactor editable=""false"">10</MTUFactor> </ServiceEndPointConfigurationDefinition> <UseCount>0</UseCount> <UsedBy/> <IsStandard>false</IsStandard> </ServiceDefinition> </ServiceResource> </Data>" "
Create an E-LAN Service Definition with Default Service Template
This request is used to create an E-LAN service definition configured with default service template.
URI | api/space/nsas/elan-vpls/service-management/service-definitions/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an E-LAN service definition configured with default service template. |
Input (E-LAN BGP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition> <Common> <Name>Test_VPLSBGP_SD_API</Name> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <EnableL3Access>false</EnableL3Access> <ServiceTemplates> <ServiceTemplate> <ID>1212428</ID> <Name>ST with _Descp_P2P</Name> <Default>false</Default> </ServiceTemplate> <ServiceTemplate> <ID>2064401</ID> <Name>Flexi_Temp</Name> <Default>false</Default> </ServiceTemplate> </ServiceTemplates> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <RouteTarget editable="false" selection="Auto Pick"/> <RouteDistinguisher selection="Auto pick"/> <MACLearning editable="false">Enabled</MACLearning> <MACInterfaceLimit editable="false">1024</MACInterfaceLimit> <MACStatistics editable="false">Not enabled</MACStatistics> <MACTableSize editable="false">5120</MACTableSize> <VlanNormalization>Normalize to Dot1q tag</VlanNormalization> <AllowMH>Not enabled</AllowMH> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>port-port</EthernetOption> <VlanIdSelection editable="false" selection="N/A"/> <TrafficType>N/A</TrafficType> <PhysicalEncapsulation>ethernet-vpls</PhysicalEncapsulation> <LogicalEncapsulation>N/A</LogicalEncapsulation> <MTU max="9192" min="1522" editable="false" default="1522"/> <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType> <MTUFactor editable="false">10</MTUFactor> </ServiceEndPointConfigurationDefinition> <AdvancedSettings/> </ServiceDefinition> </ServiceResource> </Data>
Input (E-LAN LDP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition> <Common> <Name>testVPLS_LDP_SD_API</Name> </Common> <ServiceType>VPLS(LDP)</ServiceType> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <EnableL3Access>false</EnableL3Access> <ServiceTemplates> <ServiceTemplate> <ID>1212428</ID> <Name>ST with _Descp_P2P</Name> <Default>false</Default> </ServiceTemplate> <ServiceTemplate> <ID>2064401</ID> <Name>Flexi_Temp</Name> <Default>true</Default> </ServiceTemplate> </ServiceTemplates> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <AutoDiscovery>false</AutoDiscovery> <VPLSId>Auto pick</VPLSId> <MACLearning editable="false">Enabled</MACLearning> <MACInterfaceLimit editable="false">1024</MACInterfaceLimit> <MACStatistics editable="false">Not enabled</MACStatistics> <MACTableSize editable="false">5120</MACTableSize> <VlanNormalization>Normalize to Dot1q tag</VlanNormalization> <AllowMH>Not enabled</AllowMH> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>port-port</EthernetOption> <VlanIdSelection editable="false" selection="N/A"/> <TrafficType>N/A</TrafficType> <VlanIdAuto max="0" min="0" default="0"/> <VlanIdManual max="0" min="0" default="0"/> <PhysicalEncapsulation>ethernet-vpls</PhysicalEncapsulation> <LogicalEncapsulation>N/A</LogicalEncapsulation> <MTU max="9192" min="1522" editable="false" default="1522"/> <EnableRateLimiting>Not enabled</EnableRateLimiting> <DefaultBandwidth unit="Mbps" max="100" min="1" editable="false" default="1">N/A</DefaultBandwidth> <MinBandwidth unit="Kbps" max="100000" min="64">0</MinBandwidth> <MaxBandwidth unit="Mbps" max="100000" min="1">0</MaxBandwidth> <Increment unit="Kbps" max="100000" min="64" default="64">0</Increment> <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType> <MTUFactor editable="false">10</MTUFactor> </ServiceEndPointConfigurationDefinition> <AdvancedSettings/> </ServiceDefinition> </ServiceResource> </Data>
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceDefinition</Type> <Value>458825</Value> </Identity> <Code>200</Code> <Message>ServiceDefinition Created Successfully</Message> </Status> </Data>
Create a Point-to-Multipoint E-LAN Service Definition (Version 2)
This request is used to create a point-to-multipoint E-LAN service definition in version 2 format. In the version 2 format, the <EnableRateLimiting> parameter is a mandatory parameter.
URI | api/space/nsas/elan-vpls/service-management/service-definitions/ |
HTTP Method | POST |
Content-Type | application/vnd.net.juniper.space.service- |
Consumes | application/vnd.net.juniper.space.service-management. |
Produces | Creates an E-LAN service definition in version 2 format. |
Input (E-LAN BGP)
Sample XML Input
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <ServiceResource> <ServiceDefinition> <Common> <Name>APISD_BGP_HS_001</Name> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InterfaceType>VPLS (Point-MultiPoint)</InterfaceType> <EnableL3Access>false</EnableL3Access> <PWExtension>Enabled</PWExtension> <PWResiliency>Enabled</PWResiliency> <QosEnabled>false</QosEnabled> <ServiceElementConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSServiceEndpointGroupParameterDefType"> <RouteTarget editable="true" selection="Auto Pick" /> <RouteDistinguisher editable="true" selection="Auto pick" /> <MACLearning editable="false">Enabled</MACLearning> <MACInterfaceLimit editable="false">1024</MACInterfaceLimit> <MACStatistics editable="false">Not enabled</MACStatistics> <MACTableSize editable="false">5120</MACTableSize> <VlanNormalization>Normalize to Dot1q tag</VlanNormalization> <AllowMH>Not enabled</AllowMH> <VCID editable="true">Select manually</VCID> <RevertTime editable="false">5</RevertTime> <SwitchOverDelay editable="false">5</SwitchOverDelay> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:type="VPLSEndPointParameterDefType"> <EthernetOption>port-port</EthernetOption> <VlanIdSelection editable="false" selection="N/A"/> <TrafficType>N/A</TrafficType> <VlanIdAuto max="0" min="0" default="0"/> <VlanIdManual max="0" min="0" default="0"/> <PhysicalEncapsulation>ethernet-vpls</PhysicalEncapsulation> <LogicalEncapsulation>N/A</LogicalEncapsulation> <LDPPwExtensionSettings> <PhysicalEncapsulation>ethernet-ccc</PhysicalEncapsulation> <LogicalEncapsulation>N/A</LogicalEncapsulation> </LDPPwExtensionSettings> <MTU max="9192" min="1522" editable="false" default="1522"/> <EnableRateLimiting>Enabled</EnableRateLimiting> ( Rate Limiting Should be Enabled for Version 2) <DefaultBandwidth unit="Mbps" max="100" min="1" editable="false" default="1">10</DefaultBandwidth> <MinBandwidth unit="Kbps" max="100000" min="64">15</MinBandwidth> <MaxBandwidth unit="Mbps" max="100000" min="1">100</MaxBandwidth> <Increment unit="Kbps" max="100000" min="64" default="64">0</Increment> <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType> <MTUFactor editable="false">10</MTUFactor> </ServiceEndPointConfigurationDefinition> <AdvancedSettings/> </ServiceDefinition> </ServiceResource> </Data>
Output
Sample XML Output
<Data xmlns="services.schema.networkapi.jmp.juniper.net"> <Status> <Identity> <Type>ServiceDefinition</Type> <Value>458825</Value> </Identity> <Code>200</Code> <Message>ServiceDefinition Created Successfully</Message> </Status> </Data>
Modify an E-LAN Service Definition with vpls Instance and vpls Protocol Type
This request is used to modify an E-LAN Service Definition with vpls Instance and vpls Protocol Type.
URL | /api/space/nsas/csd/service-definition/<defn-id> |
Sample URL | https://192.0.2.10:8080/api/space/nsas/csd/service-definition/12345 |
HTTP Method | POST |
Accept Header | application/xml |
Content Type | application/xml; |
Request
""<Data xmlns=""services.schema.networkapi.jmp.juniper.net""> <ServiceResource> <ServiceDefinition> <Common> <Name>Multihoming</Name> <Comments></Comments> </Common> <ServiceType>VPLS(BGP)</ServiceType> <InstanceType>VPLS</InstanceType> <Protocol>VPLS</Protocol> <EnableMultihoming>true</EnableMultihoming> <MultihomingMode>single-active</MultihomingMode> <InterfaceType>VPLS (MultiPoint-MultiPoint)</InterfaceType> <UseCount>0</UseCount> <EnableL3Access>false</EnableL3Access> <StaticpseudoWire>undefined</StaticpseudoWire> <QosEnabled></QosEnabled> <ServiceElementConfigurationDefinition xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""VPLSServiceEndpointGroupParameterDefType""> <RouteTarget selection=""Auto Pick"" editable=""false"" /> <RouteDistinguisher selection=""Auto pick"" editable=""false"" /> <AllowMH>Not enabled</AllowMH> <VlanNormalization>Normalize to Dot1q tag</VlanNormalization> <MACLearning editable=""false"">Not Enabled</MACLearning> <MACStatistics editable=""false"">Not enabled</MACStatistics> <MACTableSize editable=""false"">5120</MACTableSize> <MACInterfaceLimit editable=""false"">1024</MACInterfaceLimit> </ServiceElementConfigurationDefinition> <ServiceEndPointConfigurationDefinition xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""VPLSEndPointParameterDefType""> <EthernetOption editable=""undefined"">dot1q</EthernetOption> <VlanIdSelection selection=""Select manually"" editable=""false"" /> <VlanIdManual max=""4094"" min=""1"" default=""1"" /> <TrafficType>Transport single vlan</TrafficType> <PhysicalEncapsulation>flexible-ethernet-services</PhysicalEncapsulation> <LogicalEncapsulation>vlan-vpls</LogicalEncapsulation> <MTU max=""undefined"" min="""" editable=""false"" default=""1522"" /> <EnableRateLimiting>Enabled</EnableRateLimiting> <DefaultBandwidth unit=""Mbps"" max=""100"" min=""1"" editable=""false"" default=""1"">10</DefaultBandwidth> <MinBandwidth unit=""Kbps"" max=""100000"" min=""64""></MinBandwidth> <MaxBandwidth unit=""Mbps"" max=""100000"" min=""1"">undefined</MaxBandwidth> <Increment unit=""Kbps"" max=""100000"" min=""64"" default=""64""></Increment> <CalculateBurstSizeType>MTU Based</CalculateBurstSizeType> <MTUFactor editable=""false"">10</MTUFactor> </ServiceEndPointConfigurationDefinition> <AdvancedSettings xmlns:xsi=""http://www.w3.org/2001/XMLSchema-instance"" xsi:type=""VPLSAdvanceEndPointConfigParameterDefType""></AdvancedSettings> </ServiceDefinition> </ServiceResource> </Data>" "
Response
""<Data> <Status> <Identity> <Type>Service Definition</Type> <Value>18350080</Value> </Identity> <Code>200</Code> <Message>ServiceDefinition Modified Successfully</Message> </Status> </Data>" "