1
양 1.1 사양이 예제를 가지고, 다음 예는 데이터 노드에 통지를 정의이 양 알림은 어떻게 유효합니까?
module example-interface-module {
yang-version 1.1;
namespace "urn:example:interface-module";
prefix "if";
container interfaces {
list interface {
key "name";
leaf name {
type string;
}
notification interface-enabled {
leaf by-user {
type string;
}
}
}
}
}
전체 통지의 해당 XML 인스턴스 예 :
<notification
xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
<eventTime>2008-07-08T00:01:00Z</eventTime>
<interfaces xmlns="urn:example:interface-module">
<interface>
<name>eth1</name>
<interface-enabled>
<by-user>fred</by-user>
</interface-enabled>
</interface>
</interfaces>
</notification>
내 질문은, 때 서버에서 알림을 제기합니다. 알림 내용은 다음과 같을 것입니다.
<notification
xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
<eventTime>2008-07-08T00:01:00Z</eventTime>
<interface-enabled xmlns="urn:example:interface-module">
<by-user>fred</by-user>
</interface-enabled>
</notification>
부 그러한 통지는 통지가 관련된 데이터 노드를 식별하지 않고는 쓸모 없게된다.
나는, 내 질문에, 어떤 규칙/사양에 텍스트가 나를 얼마나 제대로