Cisco Cisco Elastic Services Controller 2.2 Developer's Guide

Page of 84
6.1.9  Create Flavor 
6.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"> 
        <flavors> 
          <flavor> 
            <name>myflavor</name> 
            <vcpus>1</vcpus> 
            <memory_mb>512</memory_mb> 
            <root_disk_mb>0</root_disk_mb> 
            <ephemeral_disk_mb>0</ephemeral_disk_mb> 
            <swap_disk_mb>0</swap_disk_mb> 
          </flavor> 
        </flavors> 
      </esc_datamodel> 
    </config> 
  </edit-config> 
</rpc> 
 
 
 
 
6.1.9.2  Netconf Response 
An rpc-reply response is returned with a status of ok if the request was accepted for activation, or a 
status of rpc-error if the request was rejected.  See section 
  for more details. 
Note – Flavor Operations (Create and Delete) are not supported for VMWare VIM ! 
6.1.9.3  Configuration Activation 
On Success: 
Event notification 
An escEvent of type CREATE_FLAVOR with a status of SUCCESS will be sent to Netconf subscribers once 
the configuration activation has completed.  This indicates that the activation workflow is complete and 
the configuration resource has been successfully created in the VIM. 
 
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0"> 
  <eventTime>2015-05-05T19:38:27.71+00:00</eventTime> 
  <escEvent xmlns="http://www.cisco.com/esc/esc"> 
    <status>SUCCESS</status> 
    <status_message>
 
Flavor creation completed successfully.</status_message> 
    <flavor>myflavor</flavor> 
    <vm_source> 
  </vm_source> 
    <vm_target> 
  </vm_target> 
    <event> 
      <type>CREATE_FLAVOR</type> 
    </event> 
  </escEvent> 
</notification>