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."; } 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 } // submodule huawei-diagnostic-tools-ipv4
© 2023 YumaWorks, Inc. All rights reserved.