IPv4 diagnosis tool.
Version: 2020-09-10
submodule huawei-diagnostic-tools-ipv4 { yang-version 1; belongs-to huawei-diagnostic-tools { prefix diagnostic-tools; } import huawei-pub-type { prefix pub-type; } import huawei-network-instance { prefix ni; } import huawei-ifm { prefix ifm; } import ietf-inet-types { prefix inet; } import ietf-yang-types { prefix yang; } import huawei-extension { prefix ext; } include huawei-diagnostic-tools-common; include huawei-diagnostic-tools-type; organization "Huawei Technologies Co., Ltd."; contact "Huawei Industrial Base Bantian, Longgang Shenzhen 518129 People's Republic of China Website: http://www.huawei.com Email: support@huawei.com"; description "IPv4 diagnosis tool."; revision "2020-09-10" { description "Add fast reply inbound node."; reference "Huawei private."; } revision "2019-10-29" { description "Initial revision."; reference "Huawei private."; } grouping ip-ping-trace-result-type { description "IP test result."; container ping-results { config false; description "List of ping test results."; list ping-result { key "test-name"; config false; description "Statistics of ping test result."; leaf test-name { type string { length "1..32"; } config false; description "Test name."; } leaf packet-recv { type uint32 { range "0..4294967295"; } config false; description "Total number of received packets."; } leaf packet-send { type uint32 { range "0..4294967295"; } config false; description "Total number of sent packets."; } leaf loss-ratio { type pub-type:percent { range "0..100"; } units "%"; config false; description "Packet loss ratio of a test."; } leaf rtt-min { type uint32 { range "0..4294967295"; } units "ms"; config false; description "Minimum RTT of all test packets."; } leaf rtt-max { type uint32 { range "0..4294967295"; } units "ms"; config false; description "Maximum RTT of all test packets."; } leaf average-rtt { type uint32 { range "0..4294967295"; } units "ms"; config false; description "Average RTT of all test packets."; } leaf status { type dgntl-test-status-type; config false; description "Test status."; } leaf error-type { type dgntl-error-type; config false; description "Test operation status."; } container details { config false; description "List of ping results of all packets in a test."; list detail { key "index"; config false; description "Statistics of probe result."; leaf index { type uint32 { range "0..4294967295"; } config false; description "Serial number of a test packet received."; } leaf ip-addr { type inet:ipv4-address-no-zone; config false; description "Reply address in a received response packet."; } leaf packet-size { type uint32 { range "0..4294967295"; } config false; description "Number of bytes in a received response packet."; } leaf ttl { type uint8 { range "1..255"; } config false; description "TTL of received response packets."; } leaf rtt { type uint32 { range "0..4294967295"; } units "ms"; config false; description "RTT of test packets."; } leaf result-type { type detail-result-type; config false; description "Result of packet sending, which is either success or timeout."; } leaf system-time { type yang:date-and-time; config false; description "System time of response packets."; } leaf is-delete { ext:support-filter "true"; type boolean; config false; description "Enable/disable the function of deleting test results."; } } // list detail } // container details } // list ping-result } // container ping-results container trace-results { config false; description "List of trace test results."; list trace-result { key "test-name"; config false; description "Statistics of trace test result."; leaf test-name { type string { length "1..32"; } config false; description "Test name."; } leaf status { type dgntl-test-status-type; config false; description "Test status."; } leaf error-type { type dgntl-error-type; config false; description "Test operation status."; } container details { config false; description "List of ping results of all packets in a test."; list detail { key "hop-index"; config false; description "Statistics of ping result of a single packet in a test."; leaf hop-index { type uint32; config false; description "Serial number of a hop in the test path. For a ping-type test such as the ping test or LSP ping test, there is only one hop in the test path, so the value is 1. For a trace-type test such as the trace test or LSP trace test, the value indicates the exact serial number of a hop in the test path."; } leaf ttl { type uint8 { range "1..255"; } config false; description "TTL of received response packets."; } leaf rtt { type uint32; config false; description "RTT of test packets."; } leaf ds-ip-addr { type inet:ipv4-address-no-zone; config false; description "Destination address of the related hop in a test."; } leaf is-delete { ext:support-filter "true"; type boolean; config false; description "Enable/disable the function of deleting test results."; } } // list detail } // container details } // list trace-result } // container trace-results } // grouping ip-ping-trace-result-type rpc ipv4-start-ip-ping { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:ipv4/diagnostic-tools:ping-results"; description "Start IPv4 ping test."; input { leaf test-name { type string { length "1..32"; } mandatory true; description "Test name."; } leaf dest-addr { type pub-type:host-name; mandatory true; description "Destination address of the string type. You can click this node to set different types of addresses and deploy the configurations together with the configuration of the destination address type node. If the destination address type is set to IPv4, this parameter is set to IPv4. If the destination address type is set to IPv6, this parameter is set to IPv6."; } leaf source-address { type inet:ipv4-address-no-zone; description "Source address of the string type. You can click this node to set different types of addresses and deploy the configurations together with the configuration of the source address type node. If the source address type is set to IPv4, this parameter is set to IPv4. If the source address type is set to IPv6, this parameter is set to IPv6."; } leaf vrf-name { type leafref { path "/ni:network-instance/ni:instances/ni:instance/ni:name"; } description "Name of a VPN instance."; } leaf packet-size { type uint32 { range "20..9600"; } default "56"; description "Number of bytes in a sent test packet."; } leaf packet-count { type uint32 { range "1..4294967295"; } default "5"; description "Number of sent test packets."; } choice priority { description "Priority type."; case dscp-value { description "DSCP value."; leaf dscp { type uint32 { range "0..63"; } default "0"; description "DSCP value."; } } // case dscp-value case tos-value { description "ToS value."; leaf tos { type uint8 { range "0..255"; } description "ToS value."; } } // case tos-value } // choice priority leaf interval { type uint32 { range "1..10000"; } units "ms"; default "500"; description "Interval for sending test packets."; } leaf timeout { type uint32 { range "0..65535"; } units "ms"; default "2000"; description "Time to wait for a response packet after a test packet is sent. If no response packet is received within the timeout period, the system considers that the test packet times out."; } leaf ttl { type uint8 { range "1..255"; } default "255"; description "Time to live."; } leaf pattern { type string { length "1..8"; } description "Packet fill."; } leaf if-name { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name"; } description "Name of the outbound interface for test packets."; } leaf inbound-reply-fast { type boolean; must "../if-name"; description "Enable/disable fast reply from the specified Eth-Trunk member interface."; } leaf service-class { type service-class-value; description "Service class."; } } } // rpc ipv4-start-ip-ping rpc ipv4-stop-ip-ping { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:ipv4/diagnostic-tools:ping-results"; description "Stop IPv4 ping test."; input { leaf test-name { type leafref { path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:ipv4/diagnostic-tools:ping-results/diagnostic-tools:ping-result/diagnostic-tools:test-name"; } mandatory true; description "Test name."; } } } // rpc ipv4-stop-ip-ping rpc ipv4-delete-ip-ping { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:ipv4/diagnostic-tools:ping-results"; description "Delete IPv4 ping test."; input { leaf test-name { type leafref { path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:ipv4/diagnostic-tools:ping-results/diagnostic-tools:ping-result/diagnostic-tools:test-name"; } mandatory true; description "Test name."; } } } // rpc ipv4-delete-ip-ping rpc ipv4-start-ip-trace { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:ipv4/diagnostic-tools:trace-results"; description "Start IPv4 trace test."; input { leaf test-name { type string { length "1..32"; } mandatory true; description "Test name."; } leaf dest-ip-addr { type pub-type:host-name; mandatory true; description "Destination address of the string type. You can click this node to set different types of addresses and deploy the configurations together with the configuration of the destination address type node. If the destination address type is set to IPv4, this parameter is set to IPv4. If the destination address type is set to IPv6, this parameter is set to IPv6."; } leaf source-address { type inet:ipv4-address-no-zone; description "Source address of the string type. You can click this node to set different types of addresses and deploy the configurations together with the configuration of the source address type node. If the source address type is set to IPv4, this parameter is set to IPv4. If the source address type is set to IPv6, this parameter is set to IPv6."; } leaf first-ttl { type uint8 { range "1..255"; } default "1"; description "TTL of the first packet in a test."; } leaf max-ttl { type uint8 { range "1..255"; } default "30"; description "TTL of test packets."; } leaf if-name { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name"; } description "Name of the outbound interface for test packets."; } leaf timeout { type uint32 { range "0..3600000"; } units "ms"; default "5000"; description "Time to wait for a response packet after a test packet is sent. If no response packet is received within the timeout period, the system considers that the test packet times out."; } leaf vrf-name { type leafref { path "/ni:network-instance/ni:instances/ni:instance/ni:name"; } description "Name of a VPN instance."; } leaf udp-port { type uint32 { range "0..65535"; } default "33434"; description "Destination port number."; } leaf count { type uint32 { range "1..65535"; } default "3"; description "Number of sent test packets."; } leaf packet-size { type uint32 { range "12..9600"; } default "12"; description "Number of bytes in a sent test packet."; } choice priority { description "Priority type."; case dscp-value { description "DSCP value."; leaf dscp { type uint32 { range "0..63"; } default "0"; description "DSCP value."; } } // case dscp-value } // choice priority leaf service-class { type service-class-value; description "Service class."; } } } // rpc ipv4-start-ip-trace rpc ipv4-stop-ip-trace { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:ipv4/diagnostic-tools:trace-results"; description "Stop IPv4 trace test."; input { leaf test-name { type leafref { path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:ipv4/diagnostic-tools:trace-results/diagnostic-tools:trace-result/diagnostic-tools:test-name"; } mandatory true; description "Test name."; } } } // rpc ipv4-stop-ip-trace rpc ipv4-delete-ip-trace { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:ipv4/diagnostic-tools:trace-results"; description "Delete IPv4 trace test."; input { leaf test-name { type leafref { path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:ipv4/diagnostic-tools:trace-results/diagnostic-tools:trace-result/diagnostic-tools:test-name"; } mandatory true; description "Test name."; } } } // rpc ipv4-delete-ip-trace augment /diagnostic-tools:diagnostic-tools { description "List of IPv4 tests."; container ipv4 { config false; description "Statistics of IPv4 tests."; uses ip-ping-trace-result-type; } // container ipv4 } } // submodule huawei-diagnostic-tools-ipv4
© 2023 YumaWorks, Inc. All rights reserved.