Cisco Cisco Elastic Services Controller 1.0 Developer's Guide

Page of 73
 
5.1.9  Deploy Service 
A Deploy Service configuration request may contain multiple dependent workflows, in which case it can 
be referred to as a Unified Deployment.  These workflows are: 
•  Create zero or one Tenant (if it doesn’t already exist in ESC) 
•  Create zero or more Networks (if any networks are specified in the deployment) 
•  Create zero or more Subnets (if specified for any networks in the deployment) 
Networks that are created as part of a Deploy Service workflow are referred to as “ephemeral 
networks”, and the lifecycle of these networks is bound to the lifecycle of the Deployment in ESC.  An 
Un-deploy Service workflow will automatically delete any networks and subnets that were originally 
created during the Deploy Service workflow. 
Tenants that are created during a Deploy Service workflow are NOT deleted when the service is 
undeployed. 
5.1.9.1  Netconf Request  
 
 
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> 
  <edit-config xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
    <target> 
      <running/> 
    </target> 
    <config> 
      <esc_datamodel xmlns="http://www.cisco.com/esc/esc"> 
        <tenants> 
          <tenant> 
            <name>vnf-tenant</name> 
            <services> 
              <service_definition> 
                <deployment_name>csr-dep</deployment_name> 
                <name>csr-reg</name> 
                <version>1.2</version> 
                <networks> 
                  <network> 
                    <name>mk-yesc-net-u</name> 
                    <shared>false</shared> 
                    <admin_state>true</admin_state> 
                    <subnet> 
                      <name>mk-yesc-subnet-u</name> 
                      <ipversion>ipv4</ipversion> 
                      <dhcp>true</dhcp> 
                      <address>10.91.90.0</address> 
                      <netmask>255.255.255.0</netmask> 
                      <gateway>10.91.90.1</gateway> 
                    </subnet> 
                  </network> 
                </networks> 
                <vm_group> 
                  <name>csr-vm</name> 
                  <bootup_time>600</bootup_time> 
                  <recovery_wait_time>0</recovery_wait_time> 
                  <interfaces> 
                    <interface> 
                      <nicid>0</nicid> 
                      <network>esc-net</network> 
                    </interface> 
                    <interface> 
                      <nicid>1</nicid> 
                      <network>mk-yesc-net-u</network> 
                    </interface> 
                  </interfaces>