Cisco Cisco Evolved Programmable Network Manager 2.0 Developer's Guide
Cisco EPN Manager 2.0.3 RESTCONF NBI Guide
187
7.37 Provision MPLS-TE Service
7.37.1 Request
POST /restconf/operations/v1/cisco-service-provision:provision-service HTTP/1.1
Host: <epnm-host>
Content-Type: application/yang.operation+json
Host: <epnm-host>
Content-Type: application/yang.operation+json
<?xml version="1.0" encoding="UTF-8"?>
<provision-service-request
xmlns="urn:cisco:params:xml:ns:yang:service:activation:v1"
xmlns:p="urn:cisco:params:xml:ns:yang:service:activation:v1">
<provision-service-request
xmlns="urn:cisco:params:xml:ns:yang:service:activation:v1"
xmlns:p="urn:cisco:params:xml:ns:yang:service:activation:v1">
<p:service-order-data>
<p:service-template>MyServiceTemplate</p:service-template>
<p:service-name>MyDemoService1</p:service-name>
<p:service-description>MyDemoService1</p:service-description>
<p:service-type>mpls-te-tunnel</p:service-type>
<p:service-subtype>bi-directional-te-tunnel</p:service-
subtype>
<p:mpls-te-data>
<p:wrap-protection>true</p:wrap-protection>
<p:enable-fault-oam>false</p:enable-fault-oam>
<p:protection-type>Working</p:protection-type>
<p:tunnel-setting>
<p:global-id>100</p:global-id>
<p:affinity-bits>0BF</p:affinity-bits>
<p:affinit-mask>0BD</p:affinit-mask>
<p:setup-priority>4</p:setup-priority>
<p:hold-priority>7</p:hold-priority>
<p:pool-type>abc</p:pool-type>
<p:bandwidth-pool-type>Global</p:bandwidth-pool-type>
<p:bandwidth>0 Kbps</p:bandwidth>
<p:enable-autoroute>0 Kbps</p:enable-autoroute>
</p:tunnel-setting>
<p:bfd-settings>
<p:enalbe>false</p:enalbe>
<p:min-interval>0</p:min-interval>
<p:multiplier>0</p:multiplier>
</p:bfd-settings>
</p:mpls-te-data>
<p:termination-point-list>
<p:termination-point-config>
<p:nd-ref>MD=CISCO_EPNM!ND=NCS4206-TEST-120.32</p:nd-
ref>
<p:directionality>source</p:directionality>
<p:mpls-te-data>
<p:source-address>OSPF 60.60.50.50 [6]</p:source-
address>
<p:source-loopback>Loopback60</p:source-loopback>
</p:mpls-te-data>
<p:service-name>MyDemoService1</p:service-name>
<p:service-description>MyDemoService1</p:service-description>
<p:service-type>mpls-te-tunnel</p:service-type>
<p:service-subtype>bi-directional-te-tunnel</p:service-
subtype>
<p:mpls-te-data>
<p:wrap-protection>true</p:wrap-protection>
<p:enable-fault-oam>false</p:enable-fault-oam>
<p:protection-type>Working</p:protection-type>
<p:tunnel-setting>
<p:global-id>100</p:global-id>
<p:affinity-bits>0BF</p:affinity-bits>
<p:affinit-mask>0BD</p:affinit-mask>
<p:setup-priority>4</p:setup-priority>
<p:hold-priority>7</p:hold-priority>
<p:pool-type>abc</p:pool-type>
<p:bandwidth-pool-type>Global</p:bandwidth-pool-type>
<p:bandwidth>0 Kbps</p:bandwidth>
<p:enable-autoroute>0 Kbps</p:enable-autoroute>
</p:tunnel-setting>
<p:bfd-settings>
<p:enalbe>false</p:enalbe>
<p:min-interval>0</p:min-interval>
<p:multiplier>0</p:multiplier>
</p:bfd-settings>
</p:mpls-te-data>
<p:termination-point-list>
<p:termination-point-config>
<p:nd-ref>MD=CISCO_EPNM!ND=NCS4206-TEST-120.32</p:nd-
ref>
<p:directionality>source</p:directionality>
<p:mpls-te-data>
<p:source-address>OSPF 60.60.50.50 [6]</p:source-
address>
<p:source-loopback>Loopback60</p:source-loopback>
</p:mpls-te-data>