MAC diagnosis tool.
Version: 2020-01-14
submodule huawei-diagnostic-tools-gmac { yang-version 1; belongs-to huawei-diagnostic-tools { prefix diagnostic-tools; } import huawei-pub-type { prefix pub-type; } import huawei-ifm { prefix ifm; } 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 "MAC diagnosis tool."; revision "2020-01-14" { description "Add container for list."; reference "Huawei private."; } revision "2019-04-13" { description "Init revision."; reference "Huawei private."; } rpc gmac-start-ping { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:gmac/diagnostic-tools:ping-results"; description "Start gmac ping."; input { leaf test-name { type string { length "1..32"; } mandatory true; description "Test name."; } leaf dest-mac { type pub-type:mac-address; mandatory true; description "Destination mac address of the related hop in a test."; } choice l2-protocol { description "L2 protocol."; case vsi { description "VSI."; leaf vsi-name { type string { length "1..31"; } description "VSI name."; } } // case vsi } // choice l2-protocol leaf if-name { type leafref { path "/ifm:ifm/ifm:interfaces/ifm:interface/ifm:name"; } description "Interface name."; } choice vlan-type { description "VLAN type."; case qinq { description "QINQ VLAN."; leaf pe-vid { type uint16 { range "1..4094"; } description "PE VLAN ID."; } leaf ce-vid { type uint16 { range "1..4094"; } description "CE VLAN ID."; } } // case qinq case dot1q { description "DOT1Q VLAN."; leaf dot1q-vlan { type uint16 { range "1..4094"; } description "Config DOT1Q VLAN ID."; } } // case dot1q } // choice vlan-type leaf count { type uint32 { range "1..4294967295"; } default "5"; description "Specify the times of ping action (default is 5)."; } leaf packet-size { type uint32 { range "95..9000"; } units "Byte"; default "95"; description "Number of data bytes to be sent."; } leaf timeout { type uint32 { range "1..65535"; } units "ms"; default "2000"; description "Specifies the time-out period."; } leaf priority { type uint32 { range "0..7"; } default "7"; description "Message priority, the default value is 7."; } } } // rpc gmac-start-ping rpc gmac-stop-ping { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:gmac/diagnostic-tools:ping-results"; description "Stop gmac ping."; input { leaf test-name { type leafref { path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:gmac/diagnostic-tools:ping-results/diagnostic-tools:ping-result/diagnostic-tools:test-name"; } mandatory true; description "Test name."; } } } // rpc gmac-stop-ping rpc gmac-delete-ping { ext:node-ref "/diagnostic-tools:diagnostic-tools/diagnostic-tools:gmac/diagnostic-tools:ping-results"; description "Delete gmac ping."; input { leaf test-name { type leafref { path "/diagnostic-tools:diagnostic-tools/diagnostic-tools:gmac/diagnostic-tools:ping-results/diagnostic-tools:ping-result/diagnostic-tools:test-name"; } mandatory true; description "Test name."; } } } // rpc gmac-delete-ping } // submodule huawei-diagnostic-tools-gmac
© 2023 YumaWorks, Inc. All rights reserved.