Cisco Cisco Elastic Services Controller 2.3 Guida Dello Sviluppatore

Pagina di 85
6.1.14 
[DEPRECATED] 
Unregister Service from the Service Catalog 
This functionality will exist for the sole purpose of unregistering services from upgraded legacy ESC 
systems.
 
6.1.14.1 Netconf Request  
<rpc message-id="1" xmlns="urn:ietf:params:xml:ns:netconf:base:1.0"> 
  <edit-config :nc="urn:ietf:params:xml:ns:netconf:base:1.0"> 
    <target> 
      <running/> 
    </target> 
    <config> 
      <esc_datamodel xmlns="http://www.cisco.com/esc/esc">  
        <services> 
          <service_definition nc:operation="delete"> 
            <name>csr-reg</name> 
            <version>1.2</version> 
          </service_definition> 
        </services> 
      </esc_datamodel> 
     </config> 
  </edit-config> 
</rpc> 
 
 
 
 
6.1.14.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 sectio
  for more details.   
6.1.14.3 Configuration Activation 
On Success: 
Event notification 
A single escEvent notification of type SERVICE_UNREGISTRATION with a SUCCESS status 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. 
 
<?xml version="1.0" encoding="UTF-8"?> 
<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0"> 
  <eventTime>2015-05-19T19:56:00.167+00:00</eventTime> 
  <escEvent xmlns="http://www.cisco.com/esc/esc"> 
    <status>SUCCESS</status> 
    <status_message>Unregister service completed 
successfully</status_message> 
    <svcname>csr-reg</svcname> 
    <svcversion>1.2</svcversion> 
    <svcid>5a96dcfd-a404-43fa-8b00-01bd68af5048</svcid> 
    <vm_source> 
  </vm_source> 
    <vm_target> 
  </vm_target> 
    <event> 
      <type>SERVICE_UNREGISTRATION</type> 
    </event> 
  </escEvent> 
</notification>