Cisco Cisco Elastic Services Controller 1.1 Developer's Guide

Page of 82
 
4  Custom RPC Methods 
The ESC Netconf interface provides some custom RPC methods for controlling operational states of 
deployed services and VMs. 
4.1  serviceAction method 
This method is used to perform service actions including stop, start, reboot, disable-monitor and enable 
monitor. 
Refer to section 6.2.1 for ESC workflows using the serviceAction method. 
4.2  vmAction method 
This method is used to perform VM actions including stop, start, reboot, disable-monitor and enable 
monitor. 
Refer to section 6.2.2 for ESC workflows using the vmAction method. 
5  ESC Workflows using Netconf 
5.1  Configuration Workflows 
5.1.1  Create Tenant 
5.1.1.1  Netconf Request  
 
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> 
  <edit-config> 
    <source> 
      <running/> 
    </source> 
    <config> 
      <esc_datamodel xmlns="http://www.cisco.com/esc/esc"> 
        <tenants> 
          <tenant> 
            <name>mytenant</name> 
          </tenant> 
        </tenants> 
      </esc_datamodel> 
    </config> 
  </edit-config> 
</rpc> 
 
 
 
 
5.1.1.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.