Lsp diagnosis tool.
Version: 2019-04-09
submodule huawei-diagnostic-tools-lsp { 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 ietf-inet-types { prefix inet; } 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 "Lsp diagnosis tool."; revision "2019-04-09" { description "Initial revision."; reference "Huawei private."; } rpc lsp-start-ping { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lsp/diagnostic-tools:ping-results"; status deprecated; description "Start lsp ping."; input { choice lsp-protocol { description "Lsp protocol."; case srte { description "Lsp protocol srte."; container srte-test { description "Lsp protocol srte."; leaf test-name { type string { length "1..32"; } mandatory true; description "Test name."; } leaf tunnel-name { type string { length "1..33"; } mandatory true; description "Tunnel name."; } } // container srte-test } // case srte case srbe { description "Lsp protocol srbe."; container srbe-test { description "Lsp protocol srbe."; 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 mask-len { type uint8 { range "0..32"; } mandatory true; description "Mask length."; } leaf version { type sr-be-version; mandatory true; description "SR-TE Version: 'DRAFT' indicates the RSVP IPv4 Fec in SRTE packet."; } } // container srbe-test } // case srbe } // choice lsp-protocol } } // rpc lsp-start-ping rpc start-lsp-ping { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lsp/diagnostic-tools:ping-results"; description "Start lsp ping."; input { leaf test-name { type string { length "1..32"; } mandatory true; description "Test name."; } choice lsp-protocol { description "Lsp protocol."; case ldp { description "Lsp protocol ldp."; leaf ldp-dest-address { type pub-type:host-name; mandatory true; description "Destination address."; } leaf ldp-mask-len { type uint8 { range "0..32"; } mandatory true; description "Mask length."; } leaf ldp-loopback-address { type inet:ipv4-address-no-zone; description "Destination address of IP header in MPLS message. The prefix is 127.0.0.0/8."; } leaf ldp-remote-address { type inet:ipv4-address-no-zone; description "Remote Address."; } leaf ldp-reply-mode { type reply-mode-ip; default "udp"; description "Reply Mode."; } } // case ldp case bgp { description "Lsp protocol bgp."; leaf bgp-dest-address { type pub-type:host-name; mandatory true; description "Destination address."; } leaf bgp-mask-len { type uint8 { range "0..32"; } mandatory true; description "Mask length."; } leaf bgp-vrf-name { type leafref { path "/ni:network-instance/ni:instances/ni:instance/ni:name"; } description "Name of a VPN instance."; } leaf bgp-loopback-address { type inet:ipv4-address-no-zone; description "Destination address of IP header in MPLS message. The prefix is 127.0.0.0/8."; } leaf bgp-reply-mode { type reply-mode-bgp; default "udp"; description "Reply Mode."; } } // case bgp case te { description "Lsp protocol te."; leaf te-tunnel-name { type string { length "1..33"; } mandatory true; description "Tunnel name."; } leaf te-lsp-path { type lsp-path; default "working-path"; description "Lsp Path."; } leaf te-compatible-mode { type boolean; default "false"; description "Compatible mode."; } leaf te-reply-mode { type reply-mode-te; default "udp"; description "Reply Mode."; } } // case te case srte { description "Lsp protocol srte."; leaf srte-tunnel-name { type string { length "1..33"; } mandatory true; description "Tunnel name."; } leaf srte-remote-address { type inet:ipv4-address-no-zone; description "Remote Address."; } leaf srte-lsp-path { type lsp-path; default "working-path"; description "Lsp Path."; } leaf srte-reply-mode { type reply-mode-srte; default "udp"; description "Reply Mode."; } } // case srte case auto-srte { description "Lsp protocol auto-srte."; leaf auto-srte-tunnel-name { type string { length "1..33"; } mandatory true; description "Tunnel name."; } leaf auto-srte-remote-address { type inet:ipv4-address-no-zone; description "Remote Address."; } leaf auto-srte-lsp-path { type lsp-path; default "working-path"; description "Lsp Path."; } leaf auto-srte-reply-mode { type reply-mode-te; default "udp"; description "Reply Mode."; } } // case auto-srte case srbe { description "Lsp protocol srbe."; leaf srbe-dest-address { type pub-type:host-name; mandatory true; description "Destination address."; } leaf srbe-mask-len { type uint8 { range "0..32"; } mandatory true; description "Mask length."; } leaf srbe-remote-address { type inet:ipv4-address-no-zone; description "Remote Address."; } leaf srbe-remote-fec { type lsp-remote-fec-type; description "Remote FEC type."; } leaf srbe-remote-fec-address { type inet:ipv4-address-no-zone; description "Remote FEC IPv4 address."; } leaf srbe-remote-mask-len { type uint8 { range "0..32"; } description "Remote FEC mask length."; } leaf srbe-by-pass { type boolean; default "false"; description "By pass flag."; } leaf srbe-reply-mode { type reply-mode-srbe; default "udp"; description "Reply Mode."; } leaf flex-algo-id { type uint8 { range "128..255"; } description "Flexible algorithm ID."; } } // case srbe case srte-policy { description "Lsp protocol SR-TE policy."; choice probe-type { description "Probe type of SR-TE policy."; case policy-name { description "Policy name."; leaf policy-name { type string { length "1..31"; } description "SR-TE policy name."; } } // case policy-name case end-point { description "End point."; leaf end-point-ip { type inet:ipv4-address-no-zone; mandatory true; description "Endpoint IPv4 address."; } leaf color { type uint32 { range "0..4294967295"; } mandatory true; description "Endpoint color ID."; } } // case end-point case binding-sid { description "Binding sid."; leaf binding-sid { type uint32 { range "16..1048575"; } description "Binding segmentlist ID."; } } // case binding-sid } // choice probe-type } // case srte-policy } // choice lsp-protocol leaf source-address { type inet:ipv4-address-no-zone; description "The source address of the targeted session."; } leaf next-hop { type inet:ipv4-address-no-zone; description "Next hop address."; } leaf count { type uint32 { range "1..4294967295"; } default "5"; description "Number of sent test packets."; } leaf exp { type uint32 { range "0..7"; } default "0"; description "EXP value in the label field of MPLS packets. The EXP value is used to distinguish the service types of MPLS packets."; } leaf ttl { type uint8 { range "1..255"; } default "255"; description "TTL value."; } leaf interval { type uint32 { range "1..10000"; } units "ms"; default "2000"; description "Interval for sending test packets."; } leaf packet-size { type uint32 { range "65..9600"; } default "100"; description "Number of bytes in a sent test packet."; } 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 fragment { type boolean; default "false"; description "Set the Fragment flag in packet."; } } } // rpc start-lsp-ping rpc lsp-stop-ping { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lsp/diagnostic-tools:ping-results"; description "Stop lsp ping."; input { leaf test-name { type leafref { path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lsp/diagnostic-tools:ping-results/diagnostic-tools:ping-result/diagnostic-tools:test-name"; } mandatory true; description "Test name."; } } } // rpc lsp-stop-ping rpc lsp-delete-ping { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lsp/diagnostic-tools:ping-results"; description "Delete lsp ping."; input { leaf test-name { type leafref { path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lsp/diagnostic-tools:ping-results/diagnostic-tools:ping-result/diagnostic-tools:test-name"; } mandatory true; description "Test name."; } } } // rpc lsp-delete-ping rpc lsp-start-trace { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lsp/diagnostic-tools:trace-results"; status deprecated; description "Start lsp trace."; input { choice lsp-protocol { description "Lsp protocol."; case srte { description "Lsp protocol srte."; container srte-test { description "Lsp protocol srte."; leaf test-name { type string { length "1..255"; } mandatory true; description "Test name."; } leaf tunnel-name { type string { length "1..33"; } mandatory true; description "Tunnel name."; } } // container srte-test } // case srte case srbe { description "Lsp protocol srbe."; container srbe-test { description "Lsp protocol srbe."; leaf test-name { type string { length "1..255"; } 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 mask-len { type uint8 { range "0..32"; } mandatory true; description "Mask length."; } leaf version { type sr-be-version; mandatory true; description "SR-TE Version: 'DRAFT' indicates the RSVP IPv4 Fec in SRTE packet."; } } // container srbe-test } // case srbe } // choice lsp-protocol } } // rpc lsp-start-trace rpc start-lsp-trace { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lsp/diagnostic-tools:trace-results"; description "Start lsp trace."; input { leaf test-name { type string { length "1..32"; } mandatory true; description "Test name."; } choice lsp-protocol { description "Lsp protocol."; case ldp { description "Lsp protocol ldp."; leaf ldp-dest-address { type pub-type:host-name; mandatory true; description "Destination address."; } leaf ldp-mask-len { type uint8 { range "0..32"; } mandatory true; description "Mask length."; } leaf ldp-loopback-address { type inet:ipv4-address-no-zone; description "Destination address of IP header in MPLS message. The prefix is 127.0.0.0/8."; } leaf ldp-reply-mode { type reply-mode-ip; default "udp"; description "Reply Mode."; } leaf ldp-ddmap { type boolean; default "false"; description "Ddmap TLV enable."; } } // case ldp case bgp { description "Lsp protocol bgp."; leaf bgp-dest-address { type pub-type:host-name; mandatory true; description "Destination address."; } leaf bgp-mask-len { type uint8 { range "0..32"; } mandatory true; description "Mask length."; } leaf bgp-loopback-address { type inet:ipv4-address-no-zone; description "Destination address of IP header in MPLS message. The prefix is 127.0.0.0/8."; } leaf bgp-reply-mode { type reply-mode-bgp; default "udp"; description "Reply Mode."; } } // case bgp case te { description "Lsp protocol te."; leaf te-tunnel-name { type string { length "1..33"; } mandatory true; description "Tunnel name."; } leaf te-lsp-path { type lsp-path; description "Lsp Path."; } leaf te-compatible-mode { type boolean; description "Compatible mode."; } leaf te-reply-mode { type reply-mode-te; default "udp"; description "Reply Mode."; } } // case te case srte { description "Lsp protocol srte."; leaf srte-tunnel-name { type string { length "1..33"; } mandatory true; description "Tunnel name."; } leaf srte-lsp-path { type lsp-path; description "Lsp Path."; } leaf srte-reply-mode { type reply-mode-srte; default "udp"; description "Reply Mode."; } leaf srte-version { type sr-version; description "SR-TE Version: 'DRAFT2' Draft-ietf-MPLS-spring-lsp-ping-02; 'RFC8287' RFC 8287."; } } // case srte case auto-srte { description "Lsp protocol auto-srte."; leaf auto-srte-tunnel-name { type string { length "1..33"; } mandatory true; description "Tunnel name."; } leaf auto-srte-lsp-path { type lsp-path; description "Lsp Path."; } leaf auto-srte-reply-mode { type reply-mode-te; default "udp"; description "Reply Mode."; } } // case auto-srte case srbe { description "Lsp protocol srbe."; leaf srbe-dest-address { type pub-type:host-name; mandatory true; description "Destination address."; } leaf srbe-mask-len { type uint8 { range "0..32"; } mandatory true; description "Mask length."; } leaf srbe-remote-address { type inet:ipv4-address-no-zone; description "Remote Address."; } leaf srbe-remote-fec { type lsptrace-remote-fec-type; description "Remote FEC type."; } leaf srbe-remote-fec-address { type inet:ipv4-address-no-zone; description "Remote FEC IPv4 address."; } leaf srbe-remote-mask-len { type uint8 { range "0..32"; } description "Remote FEC mask length."; } leaf srbe-by-pass { type boolean; description "By pass flag."; } leaf flex-algo-id { type uint8 { range "128..255"; } description "Flexible algorithm ID."; } } // case srbe case srte-policy { description "Lsp protocol SR-TE policy."; choice probe-type { description "Probe type of SR-TE policy."; case policy-name { description "Policy name."; leaf policy-name { type string { length "1..31"; } description "SR-TE policy name."; } } // case policy-name case end-point { description "End point."; leaf end-point-ip { type inet:ipv4-address-no-zone; mandatory true; description "Endpoint IPv4 address."; } leaf color { type uint32 { range "0..4294967295"; } mandatory true; description "Endpoint color ID."; } } // case end-point case binding-sid { description "Binding sid."; leaf binding-sid { type uint32 { range "16..1048575"; } description "Binding segmentlist ID."; } } // case binding-sid } // choice probe-type } // case srte-policy } // choice lsp-protocol leaf source-address { type inet:ipv4-address-no-zone; description "The source address of the targeted session."; } leaf next-hop { type inet:ipv4-address-no-zone; description "Next hop address."; } leaf exp { type uint32 { range "0..7"; } default "0"; description "EXP value in the label field of MPLS packets. The EXP value is used to distinguish the service types of MPLS packets."; } leaf ttl { type uint8 { range "1..255"; } description "TTL value."; } leaf packet-size { type uint32 { range "100..9600"; } default "100"; description "Number of bytes in a sent test packet."; } 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 fragment { type boolean; default "false"; description "Set the Fragment flag in packet."; } } } // rpc start-lsp-trace rpc lsp-stop-trace { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lsp/diagnostic-tools:trace-results"; description "Stop lsp trace."; input { leaf test-name { type leafref { path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lsp/diagnostic-tools:trace-results/diagnostic-tools:trace-result/diagnostic-tools:test-name"; } mandatory true; description "Test name."; } } } // rpc lsp-stop-trace rpc lsp-delete-trace { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lsp/diagnostic-tools:trace-results"; description "Delete lsp trace."; input { leaf test-name { type leafref { path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lsp/diagnostic-tools:trace-results/diagnostic-tools:trace-result/diagnostic-tools:test-name"; } mandatory true; description "Test name."; } } } // rpc lsp-delete-trace } // submodule huawei-diagnostic-tools-lsp
© 2023 YumaWorks, Inc. All rights reserved.