LBLT diagnosis tool.
Version: 2021-01-15
submodule huawei-diagnostic-tools-8021ag { yang-version 1; belongs-to huawei-diagnostic-tools { prefix diagnostic-tools; } import huawei-pub-type { prefix pub-type; } 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 "LBLT diagnosis tool."; revision "2021-01-15" { description "Initial revision."; reference "Huawei private."; } typedef lblt-test-status-type { type enumeration { enum "testing" { value 0; description "The test is in progress."; } enum "finished" { value 1; description "The test is finished."; } enum "stopped" { value 2; description "The test is stopped."; } } description "Description of lblt-test-status-type."; } typedef lblt-error-type { type enumeration { enum "success" { value 0; description "The test succeeded."; } enum "timeout" { value 1; description "The test timeout."; } enum "failed" { value 2; description "The test failed."; } enum "local-mac" { value 3; description "The destination address cannot be a local address."; } enum "no-mac-for-rmep" { value 4; description "No MAC address is specified for an RMEP."; } enum "no-md-or-ma" { value 5; description "The specified MD or MA is not exist."; } enum "mac-out-if-err" { value 6; description "No outbound interface for the destination MAC."; } } description "Description of lblt-error-type."; } typedef lblt-detail-result-type { type enumeration { enum "success" { value 0; description "The test succeeded."; } enum "timeout" { value 1; description "Timeout."; } } description "Description of lblt-detail-result-type."; } typedef lt-forward-action-type { type enumeration { enum "forward-success" { value 0; description "Forward packet successfully."; } enum "forward-fail" { value 1; description "Failed to forward packets."; } enum "invalid" { value 2; description "No action."; } } description "Description of lt-forward-action-type."; } typedef lt-relay-action-type { type enumeration { enum "forward" { value 0; description "Relay forward."; } enum "hit" { value 1; description "Relay hit."; } } description "Description of lt-relay-action-type."; } typedef lt-mep-type { type enumeration { enum "no-mep" { value 0; description "The relay point is not MEP."; } enum "is-mep" { value 1; description "The relay point is MEP."; } } description "Description of lt-mep-type."; } rpc start-lb-test { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lblt/diagnostic-tools:lb-results"; description "Start LB test."; input { leaf test-name { type string { length "1..32"; } mandatory true; description "Test name."; } leaf md-name { type string { length "1..43"; pattern '[^\?]*'; } mandatory true; description "Specify the name of a maintenance domain (MD)."; } leaf ma-name { type string { length "1..43"; pattern '[^\?]*'; } mandatory true; description "Specify the name of a maintenance association (MA)."; } leaf mep-id { type uint16 { range "1..8191"; } mandatory true; description "Specify a MEP ID."; } choice remote { mandatory true; description "Specify the RMEP ID or MAC."; case remote-mep-id { description "Specify a RMEP ID."; leaf rmep-id { type uint16 { range "1..8191"; } description "Specify a RMEP ID."; } } // case remote-mep-id case remote-mac { description "Specify the MAC of an RMEP."; leaf rmep-mac { type pub-type:mac-address; description "Specify the MAC of an RMEP."; } } // case remote-mac } // choice remote leaf priority { type uint8 { range "0..7"; } description "Specify the priority of packets."; } leaf packet-size { type uint32 { range "64..2000"; } default "95"; description "Number of bytes in a sent test packet."; } leaf count { type uint32 { range "1..4294967295"; } default "5"; description "Number of sent test packets."; } leaf timeout { type uint32 { range "1..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."; } } } // rpc start-lb-test rpc stop-lb-test { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lblt/diagnostic-tools:lb-results"; description "Stop LB test."; input { leaf test-name { type leafref { path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lblt/diagnostic-tools:lb-results/diagnostic-tools:lb-result/diagnostic-tools:test-name"; } mandatory true; description "Test name."; } } } // rpc stop-lb-test rpc delete-lb-test { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lblt/diagnostic-tools:lb-results"; description "Delete LB test."; input { leaf test-name { type leafref { path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lblt/diagnostic-tools:lb-results/diagnostic-tools:lb-result/diagnostic-tools:test-name"; } mandatory true; description "Test name."; } } } // rpc delete-lb-test rpc start-lt-test { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lblt/diagnostic-tools:lt-results"; description "Start LT test."; input { leaf test-name { type string { length "1..32"; } mandatory true; description "Test name."; } leaf md-name { type string { length "1..43"; pattern '[^\?]*'; } mandatory true; description "Specify the name of a maintenance domain (MD)."; } leaf ma-name { type string { length "1..43"; pattern '[^\?]*'; } mandatory true; description "Specify the name of a maintenance association (MA)."; } leaf mep-id { type uint16 { range "1..8191"; } mandatory true; description "Specify a MEP ID."; } choice remote { mandatory true; description "Specify the RMEP ID or MAC."; case remote-mep-id { description "Specify a RMEP ID."; leaf rmep-id { type uint16 { range "1..8191"; } description "Specify a RMEP ID."; } } // case remote-mep-id case remote-mac { description "Specify the MAC of an RMEP."; leaf rmep-mac { type pub-type:mac-address; description "Specify the MAC of an RMEP."; } } // case remote-mac } // choice remote leaf ttl { type uint8 { range "1..255"; } default "64"; description "Specify the maximum TTL value of test packets."; } leaf timeout { type uint32 { range "1..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."; } } } // rpc start-lt-test rpc stop-lt-test { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lblt/diagnostic-tools:lt-results"; description "Stop LT test."; input { leaf test-name { type leafref { path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lblt/diagnostic-tools:lt-results/diagnostic-tools:lt-result/diagnostic-tools:test-name"; } mandatory true; description "Test name."; } } } // rpc stop-lt-test rpc delete-lt-test { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lblt/diagnostic-tools:lt-results"; description "Delete LT test."; input { leaf test-name { type leafref { path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:lblt/diagnostic-tools:lt-results/diagnostic-tools:lt-result/diagnostic-tools:test-name"; } mandatory true; description "Test name."; } } } // rpc delete-lt-test } // submodule huawei-diagnostic-tools-8021ag
© 2023 YumaWorks, Inc. All rights reserved.