Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Event related (ietf-netconf-notifications.yang)

The "netconf-config-change" notification is populated as an "Event" in the "Event Log". An example "netconf-config-change" notification is as below -

<notification xmlns="urn:ietf:params:xml:ns:netconf:notification:1.0">
    <eventTime>2023-12-12T06:44:16Z</eventTime>
    <netconf-config-change xmlns="urn:ietf:params:xml:ns:yang:ietf-netconf-notifications">
        <changed-by>
            <username>root</username>
            <session-id>22</session-id>
        </changed-by>
        <datastore>running</datastore>
        <edit>
            <target xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces">/if:interfaces/if:interface[if:name='XYZ']</target>
            <operation>create</operation>
        </edit>
        <edit>
            <target xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces">/if:interfaces/if:interface[if:name='XYZ']/if:name</target>
            <operation>create</operation>
        </edit>
        <edit>
            <target xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces">/if:interfaces/if:interface[if:name='XYZ']/if:enabled</target>
            <operation>create</operation>
        </edit>
        <edit>
            <target xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces">/if:interfaces/if:interface[if:name='XYZ']/if:type</target>
            <operation>create</operation>
        </edit>
        <edit>
            <target xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces">/if:interfaces/if:interface[if:name='XYZ']/if:description</target>
            <operation>create</operation>
        </edit>
        <edit>
            <target xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces" xmlns:o-ran-int="urn:o-ran:interfaces:1.0">/if:interfaces/if:interface[if:name='XYZ']/o-ran-int:l2-mtu</target>
            <operation>create</operation>
        </edit>
        <edit>
            <target xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces" xmlns:o-ran-int="urn:o-ran:interfaces:1.0">/if:interfaces/if:interface[if:name='XYZ']/o-ran-int:vlan-tagging</target>
            <operation>create</operation>
        </edit>
        <edit>
            <target xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces" xmlns:o-ran-int="urn:o-ran:interfaces:1.0">/if:interfaces/if:interface[if:name='XYZ']/o-ran-int:class-of-service</target>
            <operation>create</operation>
        </edit>
        <edit>
            <target xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces" xmlns:o-ran-int="urn:o-ran:interfaces:1.0">/if:interfaces/if:interface[if:name='XYZ']/o-ran-int:class-of-service/o-ran-int:u-plane-marking</target>
            <operation>create</operation>
        </edit>
        <edit>
            <target xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces" xmlns:o-ran-int="urn:o-ran:interfaces:1.0">/if:interfaces/if:interface[if:name='XYZ']/o-ran-int:class-of-service/o-ran-int:c-plane-marking</target>
            <operation>create</operation>
        </edit>
        <edit>
            <target xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces" xmlns:o-ran-int="urn:o-ran:interfaces:1.0">/if:interfaces/if:interface[if:name='XYZ']/o-ran-int:class-of-service/o-ran-int:m-plane-marking</target>
            <operation>create</operation>
        </edit>
        <edit>
            <target xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces" xmlns:o-ran-int="urn:o-ran:interfaces:1.0">/if:interfaces/if:interface[if:name='XYZ']/o-ran-int:class-of-service/o-ran-int:s-plane-marking</target>
            <operation>create</operation>
        </edit>
        <edit>
            <target xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces" xmlns:o-ran-int="urn:o-ran:interfaces:1.0">/if:interfaces/if:interface[if:name='XYZ']/o-ran-int:class-of-service/o-ran-int:other-marking</target>
            <operation>create</operation>
        </edit>
        <edit>
            <target xmlns:if="urn:ietf:params:xml:ns:yang:ietf-interfaces" xmlns:o-ran-int="urn:o-ran:interfaces:1.0">/if:interfaces/if:interface[if:name='XYZ']/o-ran-int:port-reference</target>
            <operation>create</operation>
        </edit>
    </netconf-config-change>
</notification>

The notification consists of a list of edits identified by the NETCONF server for any changes that happen in the device. The above notification is generated by creating an "ietf-interface" using the "Config App". (Note: Though attributes like "Physical Address", "ifIndex" and "speed" are configured as part of the interface creation, they are however not present in the list of edits identified by the NETCONF server.)

A subset of the "Event Log" for the above notification is as below - imageImage Added