notification.xml 6.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
  3. xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0"
  4. xmlns:netconf="urn:ietf:params:xml:ns:netconf:base:1.0"
  5. targetNamespace=
  6. "urn:ietf:params:xml:ns:netconf:notification:1.0"
  7. elementFormDefault="qualified"
  8. attributeFormDefault="unqualified"
  9. xml:lang="en">
  10. <!-- import standard XML definitions -->
  11. <xs:import namespace="http://www.w3.org/XML/1998/namespace"
  12. schemaLocation="http://www.w3.org/2001/xml.xsd">
  13. <xs:annotation>
  14. <xs:documentation>
  15. This import accesses the xml: attribute groups for the
  16. xml:lang as declared on the error-message element.
  17. </xs:documentation>
  18. </xs:annotation>
  19. </xs:import>
  20. <!-- import base netconf definitions -->
  21. <xs:import namespace="urn:ietf:params:xml:ns:netconf:base:1.0"
  22. schemaLocation="netconf.xsd"/>
  23. <!-- ************** Symmetrical Operations ********************-->
  24. <!-- <create-subscription> operation -->
  25. <xs:complexType name="createSubscriptionType">
  26. <xs:complexContent>
  27. <xs:extension base="netconf:rpcOperationType">
  28. <xs:sequence>
  29. <xs:element name="stream"
  30. type="streamNameType" minOccurs="0">
  31. <xs:annotation>
  32. <xs:documentation>
  33. An optional parameter that indicates
  34. which stream of events is of interest. If
  35. not present, then events in the default
  36. NETCONF stream will be sent.
  37. </xs:documentation>
  38. </xs:annotation>
  39. </xs:element>
  40. <xs:element name="filter"
  41. type="netconf:filterInlineType"
  42. minOccurs="0">
  43. <xs:annotation>
  44. <xs:documentation>
  45. An optional parameter that indicates
  46. which subset of all possible events
  47. is of interest. The format of this
  48. parameter is the same as that of the
  49. filter parameter in the NETCONF
  50. protocol operations. If not present,
  51. all events not precluded by other
  52. parameters will be sent.
  53. </xs:documentation>
  54. </xs:annotation>
  55. </xs:element>
  56. <xs:element name="startTime" type="xs:dateTime"
  57. minOccurs="0" >
  58. <xs:annotation>
  59. <xs:documentation>
  60. A parameter used to trigger the replay
  61. feature indicating that the replay
  62. should start at the time specified. If
  63. start time is not present, this is not a
  64. replay subscription.
  65. </xs:documentation>
  66. </xs:annotation>
  67. </xs:element>
  68. <xs:element name="stopTime" type="xs:dateTime"
  69. minOccurs="0" >
  70. <xs:annotation>
  71. <xs:documentation>
  72. An optional parameter used with the
  73. optional replay feature to indicate the
  74. newest notifications of interest. If
  75. stop time is not present, the
  76. notifications will continue until the
  77. subscription is terminated. Must be used
  78. with startTime.
  79. </xs:documentation>
  80. </xs:annotation>
  81. </xs:element>
  82. </xs:sequence>
  83. </xs:extension>
  84. </xs:complexContent>
  85. </xs:complexType>
  86. <xs:simpleType name="streamNameType">
  87. <xs:annotation>
  88. <xs:documentation>
  89. The name of an event stream.
  90. </xs:documentation>
  91. </xs:annotation>
  92. <xs:restriction base="xs:string"/>
  93. </xs:simpleType>
  94. <xs:element name="create-subscription"
  95. type="createSubscriptionType"
  96. substitutionGroup="netconf:rpcOperation">
  97. <xs:annotation>
  98. <xs:documentation>
  99. The command to create a notification subscription. It
  100. takes as argument the name of the notification stream
  101. and filter. Both of those options
  102. limit the content of the subscription. In addition,
  103. there are two time-related parameters, startTime and
  104. stopTime, which can be used to select the time interval
  105. of interest to the notification replay feature.
  106. </xs:documentation>
  107. </xs:annotation>
  108. </xs:element>
  109. <!-- ************** One-way Operations ******************-->
  110. <!-- <Notification> operation -->
  111. <xs:complexType name="NotificationContentType"/>
  112. <xs:element name="notificationContent"
  113. type="NotificationContentType" abstract="true"/>
  114. <xs:complexType name="NotificationType">
  115. <xs:sequence>
  116. <xs:element name="eventTime" type="xs:dateTime">
  117. <xs:annotation>
  118. <xs:documentation>
  119. The time the event was generated by the event source.
  120. </xs:documentation>
  121. </xs:annotation>
  122. </xs:element>
  123. <xs:element ref="notificationContent"/>
  124. </xs:sequence>
  125. </xs:complexType>
  126. <xs:element name="notification" type="NotificationType"/>
  127. </xs:schema>