Help us improve your experience.

Let us know what you think.

Do you have time for a two-minute survey?

Navigation
Guide That Contains This Content
[+] Expand All
[-] Collapse All

    VPLS Service Definitions Management RESTful Web Services

    The following operations can be performed using the Connectivity Services Director VPLS Service Definitions Management RESTful Web Services.

    Get All ELAN VPLS BGP Service Definitions

    This request is used to retrieve all the configured ELAN VPLS BGP service definitions.

    URI

    api/space/nsas/elan-vpls/service-management/service-definitions

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definitions+xml

    Produces

    Collects all the configured ELAN VPLS 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 VPLS Service Definitions

    This request is used to retrieve all the published VPLS service definitions.

    URI

    All service types:

    /api/space/nsas/service-management/
    service-definitions/published

    VPLS:

    /api/space/nsas/elan-vpls/service-management/
    service-definitions/published

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definitions+xml;version=2

    Content Type

    application/vnd.net.juniper.space.service-management
    service-definitions+xml;charset=UTF-8

    Produces

    Collects all the published VPLS service definitions.

    Output

    Sample XML Output

    Get All ELAN VPLS BGP Service Definitions with Pagination

    This request is used to retrieve all the configured ELAN VPLS BGP service definitions with pagination.

    URI

    api/space/nsas/elan-vpls/service-management/service-definitions
    ?start=4&limit=2

    api/space/nsas/elan-vpls/service-management/service-definitions
    ?paging=(start eq 4, limit eq 2)

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definitions+xml;version=2

    Produces

    Collects all the configured ELAN VPLS BGP service definitions with pagination applied.

    Note: 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 ELAN VPLS BGP Service Definitions with Pagination, Search, and Filter

    This request is used to retrieve all the configured Layer 2 Ethernet LAN (ELAN) VPLS 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
    ?start=4&limit=2&sortorder=asc&sortedby=Name&filteredby="Name::BGP"

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definitions+xml;version=2

    Produces

    Collects all the configured ELAN VPLS BGP service definitions with pagination applied, and with a filtered result-set that matches the search criteria

    Note: 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 VPLS Service Definitions by Filter Criterion

    This request is used to retrieve all the configured VPLS 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-
    definitions?filteredby=State::Published
    /api/space/nsas/elan-vpls/service-management/service-
    definitions?filteredby=Name::CreateVPLSSD01

    /api/space/nsas/elan-vpls/service-management/service-
    definitions?filteredby=ServiceType::VPLS
    (Point-MultiPoint)

    /api/space/nsas/elan-vpls/service-management/service-
    definitions?filteredby=Signaling::BGP

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definitions+xml;version=2

    Produces

    Collects all the configured VPLS service definitions that match the filter criteria

    Note: For point-to-point, Layer 3 VPN, and VPLS service definitions, the FilteredBy option can be Name, ServiceType, Signaling, and State.

    Output

    Sample XML Output

    Get ELAN VPLS BGP Service Definition Details By Definition ID

    This request is used to retrieve the details of a particular Layer 2 Ethernet LAN VPLS BGP service definition, based on the service definition ID.

    URI

    api/space/nsas/elan-vpls/service-management/service-definitions/
    <servicedefinition-Id>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definition+xml;version=2

    Produces

    Collects the details of a specific ELAN VPLS 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 ELAN VPLS LDP Service Definition Details By Definition ID

    This request is used to retrieve the details of a particular Layer 2 Ethernet LAN VPLS LDP service definition, based on the service definition ID.

    URI

    api/space/nsas/elan-vpls/service-management/service-definitions/
    <servicedefinition-Id>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definition+xml;version=2

    Produces

    Collects the details of a specific ELAN VPLS 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 ELAN VPLS 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 VPLS BGP service definition with burst size calculation, based on the service definition ID.

    URI

    api/space/nsas/elan-vpls/service-management/service-definitions/
    <servicedefinition-Id>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definition+xml;version=2

    Produces

    Collects the details of a specific ELAN VPLS 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 ELAN VPLS 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 VPLS LDP service definition with burst size calculation, based on the service definition ID.

    URI

    api/space/nsas/elan-vpls/service-management/service-definitions/
    <servicedefinition-Id>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definition+xml;version=2

    Produces

    Collects the details of a specific ELAN VPLS 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 ELAN VPLS 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 VPLS 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/
    <servicedefinition-Id>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definition+xml;version=2

    Produces

    Collects the details of a specific ELAN VPLS 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 ELAN VPLS 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 VPLS BGP service definition with pseudowire stitching, based on the service definition ID.

    URI

    api/space/nsas/elan-vpls/service-management/service-definitions/
    <servicedefinition-Id>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definition+xml;version=2

    Produces

    Collects the details of a specific ELAN VPLS 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 ELAN VPLS 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 VPLS service definition with manual route target, based on the service definition ID.

    URI

    api/space/nsas/elan-vpls/service-management/service-definitions/
    <servicedefinition-Id>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definition+xml;version=2

    Produces

    Collects the details of a specific ELAN VPLS 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 ELAN VPLS BGP Service Definition

    This request is used to create an ELAN VPLS 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.
    service-definition+xml

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definition-status+xml

    Produces

    Creates an ELAN VPLS 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 ELAN VPLS Service Definition

    This request is used to create an ELAN VPLS service definition.

    URI

    api/space/nsas/elan-vpls/service-management/service-definitions/

    HTTP Method

    POST

    Content-Type

    application/vnd.net.juniper.space.service-
    management.
    service-definition+xml

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definition-status+xml

    Produces

    Creates an ELAN VPLS 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 ELAN VPLS BGP Service Definition with Burst Size

    This request is used to create an ELAN VPLS 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-
    management.
    service-definition+xml

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definition-status+xml

    Produces

    Creates an ELAN VPLS 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 ELAN VPLS BGP Service Definition

    This request is used to publish or unpublish an ELAN VPLS 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.
    service-definition+xml

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definition-status+xml

    Action types are Publish and Unpublish.

    Produces

    Publishes or unpublishes an ELAN VPLS 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 ELAN VPLS BGP Service Definition

    This request is used to delete a previously configured ELAN VPLS BGP service definition.

    URI

    api/space/nsas/elan-vpls/service-management/service-definitions/
    <servicedefinition-id>

    HTTP Method

    DELETE

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definition+xml

    Produces

    Deletes an ELAN VPLS 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 a VPLS Service Definition with Default Service Template By Definition ID

    This request is used to retrieve the details of a particular VPLS service definition with default service template, based on the service definition ID.

    URI

    api/space/nsas/elan-vpls/service-management/service-definitions/
    <servicedefinition-Id>

    HTTP Method

    GET

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definition+xml

    Produces

    Collects the details of a specific VPLS service definition with default service template.

    Output (VPLS 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 (VPLS 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>
    

    Create a VPLS Service Definition with Default Service Template

    This request is used to create a VPLS 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-
    management.
    service-definition+xml;version=2;charset=UTF-8

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definition-status+xml;version=2

    Produces

    Creates a VPLS service definition configured with default service template.

    Input (VPLS 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 (VPLS 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 VPLS Service Definition (Version 2)

    This request is used to create a point-to-multipoint VPLS 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-
    management.
    service-definition+xml;version=2;charset=UTF-8

    Consumes

    application/vnd.net.juniper.space.service-management.
    service-definition-status+xml;version=2

    Produces

    Creates a VPLS service definition in version 2 format.

    Input (VPLS 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>   
    

    Modified: 2016-06-13