Cisco Cisco Elastic Services Controller 2.3 Developer's Guide
5 Custom RPC Methods
The ESC Netconf interface provides some custom RPC methods for controlling operational states of
deployed services and VMs.
deployed services and VMs.
5.1 serviceAction method
This method is used to perform service actions including stop, start, reboot, disable-monitor and enable
monitor.
monitor.
Refer to section 6.2.1 for ESC workflows using the serviceAction method.
5.2 vmAction method
This method is used to perform VM actions including stop, start, reboot, disable-monitor and enable
monitor.
monitor.
Refer to section 6.2.2 for ESC workflows using the vmAction method.
6 ESC Workflows using Netconf
6.1 Configuration Workflows
6.1.1 Create Vim Connector
In ESC 2.3, a new Vim Connector datamodel is defined to add, update or delete the Vim Connectors.
Before ESC 2.3, Vim credentials have to be added during installation. Now, ESC can be installed with out
Vim Credential. The Vim Credential can be configured at a later time using the Vim Connector. ESC
supports adding only one Vim Connector. If no Vim Connector is added or configured during
installation, ESC will reject the northbound config requests that require Vim Credentials. As part of
update, user name and password can be updated.
Before ESC 2.3, Vim credentials have to be added during installation. Now, ESC can be installed with out
Vim Credential. The Vim Credential can be configured at a later time using the Vim Connector. ESC
supports adding only one Vim Connector. If no Vim Connector is added or configured during
installation, ESC will reject the northbound config requests that require Vim Credentials. As part of
update, user name and password can be updated.
6.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>
<edit-config>
<source>
<running/>
</source>
<config>
<esc_system_config xmlns="http://www.cisco.com/esc/esc">
<vim_connectors>
<!--represents a vim-->
<vim_connector>
<id>openstack-vim</id>
<!--vim type [OPENSTACK|VMWARE|...]-->
<type>OPENSTACK</type>
<vim_connectors>
<!--represents a vim-->
<vim_connector>
<id>openstack-vim</id>
<!--vim type [OPENSTACK|VMWARE|...]-->
<type>OPENSTACK</type>
<properties>
<property>
<name>os_auth_url</name>
<value>http://10.85.103.37:5000/v2.0</value>
</property>
</properties>
<property>
<name>os_auth_url</name>
<value>http://10.85.103.37:5000/v2.0</value>
</property>
</properties>