Cisco Cisco Elastic Services Controller 1.1 Developer's Guide
Operational data
After an image creation configuration has been successfully activated, the operational data for the
image will show the name, image_id and visibility of the image:
image will show the name, image_id and visibility of the image:
Netconf Request
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<get>
<filter select=" esc_datamodel/opdata/images/image[name='cirros-image-indep']"
<get>
<filter select=" esc_datamodel/opdata/images/image[name='cirros-image-indep']"
</get>
</rpc>
</rpc>
Netconf Response
<rpc-reply message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0">
<data>
<esc_datamodel xmlns="http://www.cisco.com/esc/esc">
<opdata>
<images>
<image>
<name>cirros-image-indep</name>
<data>
<esc_datamodel xmlns="http://www.cisco.com/esc/esc">
<opdata>
<images>
<image>
<name>cirros-image-indep</name>
<image_id>660088a1-c38a-46b4-9dce-5b7f543ac137</image_id>
<public>true</public>
</image>
</images>
</opdata>
</esc_datamodel>
</data>
<public>true</public>
</image>
</images>
</opdata>
</esc_datamodel>
</data>
</rpc-reply>
On Failure:
Event notification
An escEvent of type CREATE_IMAGE with a status of FAILURE will be sent to Netconf subscribers if the
configuration action cannot be complete for some reason. If a FAILURE event occurs, there may be
cleanup required as described below under Handling Activation Failures
configuration action cannot be complete for some reason. If a FAILURE event occurs, there may be
cleanup required as described below under Handling Activation Failures
Operational data
After an image creation configuration has failed activation, there will be no change to the operational
data.
data.
Handling Activation Failures
If a failure occurs while activating a Create Image configuration change, the Netconf client should
explicitly bring the configuration back to a consistent state by sending the corresponding Delete Image
configuration change. The configuration change can then be retried explicitly by the Netconf client once
the underlying issue is resolved.
explicitly bring the configuration back to a consistent state by sending the corresponding Delete Image
configuration change. The configuration change can then be retried explicitly by the Netconf client once
the underlying issue is resolved.