Cisco Cisco Evolved Programmable Network Manager 2.0 开发者指南
Cisco Evolved Programmable Network Manager 2.0.1 RESTCONF API Guide
197
<
ns1:notification-subscription
>
<
ns1:subscription-id
>
-5126917137944732778
</
ns1:subscription-id
>
<
ns1:subscribed-user
>
root
</
ns1:subscribed-user
>
<
ns1:endpoint-url
>
http://{server}:{port}/{context}
</
ns1:endpoint-url
>
<
ns1:topic
>
service-activation
</
ns1:topic
>
<
ns1:creation-time
>
Tue May 31 17:21:48 PDT 2016
</
ns1:creation-time
>
<
ns1:time-of-update
>
Tue May 31 17:21:48 PDT 2016
</
ns1:time-of-update
>
</
ns1:notification-subscription
>
</
ns2:data
>
</
ns2:response-message
>
To get details of a single subscription:
o URL: https://{server}/restconf/data/v1/cisco-
notifications:subscription/{subscription-id}
o Method: GET
o Authentication: Basic Authentication
o Authentication: Basic Authentication
8.5 Inventory Notifications
Inventory notifications in EPN-M restconf is supported for three types of operations:
CREATE
o when a device is added to EPN-M
o when a service was provisioned on one or more devices that created an
o when a service was provisioned on one or more devices that created an
object in the system.
o In this case, the entire object that was created is sent as part of the
notification.
MODIFY/ UPDATE/ AVC (Attribute Value Change)
o when a device or object that exists in the system is updated.
o In this case, the object identified by its FDN (fully distinguished name) along
o In this case, the object identified by its FDN (fully distinguished name) along
with the properties that were changed are sent as part of the notification.
DELETE
o when a device or object is deleted from the system.
o Only the FDN (fully distinguished name) of the object that was deleted is
o Only the FDN (fully distinguished name) of the object that was deleted is
sent as part of the notification.
8.5.1 Inventory Notification - Examples
8.5.1.1 Create notification
<
ns2:push-change-update
xmlns:ns2
=
"urn:cisco:params:xml:ns:yang:yang-push:v1"
xmlns:ns4
=
"urn:cisco:params:xml:ns:yang:restconf:resource:physical"
xmlns:ns3
=
"urn:cisco:params:xml:ns:yang:restconf:foundation"
>
<
ns2:subscription-id
>
4005270120319728171
</
ns2:subscription-id
>
<
ns2:topic
>
/streams/v1/inventory
</
ns2:topic
>
<
ns2:time-of-update
>
Wed May 18 01:13:25 PDT 2016
</
ns2:time-of-update
>
<
ns2:operation
>
ns2:create
</
ns2:operation
>
<
ns2:update-data
>
<
ns4:equipment
>
<
description
>
1000BASE-SX SFP
</
description
>
<
name
>
GigabitEthernet 0/11
</
name
>