lib-tl1-huawei 0.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. checksums.yaml +7 -0
  2. data/.idea/.gitignore +8 -0
  3. data/.idea/misc.xml +4 -0
  4. data/.idea/remote-mappings.xml +16 -0
  5. data/.rspec +3 -0
  6. data/.ruby-gemset +1 -0
  7. data/.ruby-version +1 -0
  8. data/CODE_OF_CONDUCT.md +84 -0
  9. data/Gemfile +12 -0
  10. data/LICENSE.txt +21 -0
  11. data/README.md +47 -0
  12. data/Rakefile +8 -0
  13. data/lib/lib/tl1/huawei/message/input.rb +34 -0
  14. data/lib/lib/tl1/huawei/message/login.rb +20 -0
  15. data/lib/lib/tl1/huawei/message/logout.rb +17 -0
  16. data/lib/lib/tl1/huawei/message/lst_bms_version.rb +17 -0
  17. data/lib/lib/tl1/huawei/message/lst_emf_sys_info.rb +15 -0
  18. data/lib/lib/tl1/huawei/message/lst_gem_connection.rb +39 -0
  19. data/lib/lib/tl1/huawei/message/lst_gem_port.rb +38 -0
  20. data/lib/lib/tl1/huawei/message/lst_gpon_auto_find.rb +34 -0
  21. data/lib/lib/tl1/huawei/message/lst_gpon_ddm_info.rb +32 -0
  22. data/lib/lib/tl1/huawei/message/lst_gpon_line_profile.rb +26 -0
  23. data/lib/lib/tl1/huawei/message/lst_gpon_nni_perf.rb +32 -0
  24. data/lib/lib/tl1/huawei/message/lst_gpon_nni_port.rb +26 -0
  25. data/lib/lib/tl1/huawei/message/lst_gpon_ont_eth_port_detail.rb +39 -0
  26. data/lib/lib/tl1/huawei/message/lst_gpon_ont_eth_port_perf.rb +38 -0
  27. data/lib/lib/tl1/huawei/message/lst_gpon_ont_port_mac.rb +41 -0
  28. data/lib/lib/tl1/huawei/message/lst_gpon_port.rb +32 -0
  29. data/lib/lib/tl1/huawei/message/lst_gpon_port_detail.rb +34 -0
  30. data/lib/lib/tl1/huawei/message/lst_gpon_port_perf.rb +32 -0
  31. data/lib/lib/tl1/huawei/message/lst_gpon_sfp.rb +34 -0
  32. data/lib/lib/tl1/huawei/message/lst_gpon_srv_profile.rb +26 -0
  33. data/lib/lib/tl1/huawei/message/lst_ont.rb +43 -0
  34. data/lib/lib/tl1/huawei/message/lst_ont_dba_prof.rb +39 -0
  35. data/lib/lib/tl1/huawei/message/lst_ont_ddm_detail.rb +38 -0
  36. data/lib/lib/tl1/huawei/message/lst_ont_detail.rb +37 -0
  37. data/lib/lib/tl1/huawei/message/lst_ont_eth_port_perf.rb +44 -0
  38. data/lib/lib/tl1/huawei/message/lst_ont_eth_vlan_switch_pair.rb +40 -0
  39. data/lib/lib/tl1/huawei/message/lst_ont_ip_config.rb +38 -0
  40. data/lib/lib/tl1/huawei/message/lst_ont_ip_info.rb +40 -0
  41. data/lib/lib/tl1/huawei/message/lst_ont_port.rb +46 -0
  42. data/lib/lib/tl1/huawei/message/lst_ont_port_detail.rb +46 -0
  43. data/lib/lib/tl1/huawei/message/lst_ont_pots_state.rb +40 -0
  44. data/lib/lib/tl1/huawei/message/lst_ont_queue_shaping.rb +41 -0
  45. data/lib/lib/tl1/huawei/message/lst_ont_run_info.rb +40 -0
  46. data/lib/lib/tl1/huawei/message/lst_ont_vag_voip.rb +42 -0
  47. data/lib/lib/tl1/huawei/message/lst_ont_voip_pstn_user.rb +62 -0
  48. data/lib/lib/tl1/huawei/message/lst_ont_wan.rb +43 -0
  49. data/lib/lib/tl1/huawei/message/lst_onu_nni_ddm_detail.rb +32 -0
  50. data/lib/lib/tl1/huawei/message/output.rb +186 -0
  51. data/lib/lib/tl1/huawei/message/response.rb +27 -0
  52. data/lib/lib/tl1/huawei/message/shake_hand.rb +17 -0
  53. data/lib/lib/tl1/huawei/message.rb +42 -0
  54. data/lib/lib/tl1/huawei/version.rb +9 -0
  55. data/lib/lib/tl1/huawei.rb +4 -0
  56. data/sig/lib/tl1/huawei.rbs +8 -0
  57. metadata +114 -0
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 8cd59b9cd53e88a5ab9ab37e5159a079084d6dc8dcf221593e36f30651c04b2c
4
+ data.tar.gz: b88710e5450ad01fb10c38b2babcdf2f22cea464ddec3002f3cf64e5b9459bd9
5
+ SHA512:
6
+ metadata.gz: ebb7cf641819876080ff23acc43da119eb880a8a27880cc5d421089b92cc184ff4f414edad87020300f3d25837313444ce64eb4693c3ebfeb61ca8f314855db3
7
+ data.tar.gz: ba06e7c77a5a5339185fb3cc942309d1e4c6f9daee476bbe3fc539a459fa837359148828888602b7286aad49615f2cc3f3ee5e3a465bbb555c6a688a68f1a34e
data/.idea/.gitignore ADDED
@@ -0,0 +1,8 @@
1
+ # Default ignored files
2
+ /shelf/
3
+ /workspace.xml
4
+ # Editor-based HTTP Client requests
5
+ /httpRequests/
6
+ # Datasource local storage ignored files
7
+ /dataSources/
8
+ /dataSources.local.xml
data/.idea/misc.xml ADDED
@@ -0,0 +1,4 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectRootManager" version="2" project-jdk-name="RVM: ruby-3.1.1" project-jdk-type="RUBY_SDK" />
4
+ </project>
@@ -0,0 +1,16 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="RemoteMappingsManager">
4
+ <list>
5
+ <list>
6
+ <remote-mappings server-id="ruby@docker://pwojcieszonek/ruby:3.1.1//usr/local/bin/ruby">
7
+ <settings>
8
+ <list>
9
+ <mapping local-root="/Users" remote-root="/Users" />
10
+ </list>
11
+ </settings>
12
+ </remote-mappings>
13
+ </list>
14
+ </list>
15
+ </component>
16
+ </project>
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
data/.ruby-gemset ADDED
@@ -0,0 +1 @@
1
+ lib-tl1-huawei
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ ruby-3.0.2
@@ -0,0 +1,84 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ We as members, contributors, and leaders pledge to make participation in our community a harassment-free experience for everyone, regardless of age, body size, visible or invisible disability, ethnicity, sex characteristics, gender identity and expression, level of experience, education, socio-economic status, nationality, personal appearance, race, religion, or sexual identity and orientation.
6
+
7
+ We pledge to act and interact in ways that contribute to an open, welcoming, diverse, inclusive, and healthy community.
8
+
9
+ ## Our Standards
10
+
11
+ Examples of behavior that contributes to a positive environment for our community include:
12
+
13
+ * Demonstrating empathy and kindness toward other people
14
+ * Being respectful of differing opinions, viewpoints, and experiences
15
+ * Giving and gracefully accepting constructive feedback
16
+ * Accepting responsibility and apologizing to those affected by our mistakes, and learning from the experience
17
+ * Focusing on what is best not just for us as individuals, but for the overall community
18
+
19
+ Examples of unacceptable behavior include:
20
+
21
+ * The use of sexualized language or imagery, and sexual attention or
22
+ advances of any kind
23
+ * Trolling, insulting or derogatory comments, and personal or political attacks
24
+ * Public or private harassment
25
+ * Publishing others' private information, such as a physical or email
26
+ address, without their explicit permission
27
+ * Other conduct which could reasonably be considered inappropriate in a
28
+ professional setting
29
+
30
+ ## Enforcement Responsibilities
31
+
32
+ Community leaders are responsible for clarifying and enforcing our standards of acceptable behavior and will take appropriate and fair corrective action in response to any behavior that they deem inappropriate, threatening, offensive, or harmful.
33
+
34
+ Community leaders have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct, and will communicate reasons for moderation decisions when appropriate.
35
+
36
+ ## Scope
37
+
38
+ This Code of Conduct applies within all community spaces, and also applies when an individual is officially representing the community in public spaces. Examples of representing our community include using an official e-mail address, posting via an official social media account, or acting as an appointed representative at an online or offline event.
39
+
40
+ ## Enforcement
41
+
42
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be reported to the community leaders responsible for enforcement at p.wojcieszonek@bosmanager.com. All complaints will be reviewed and investigated promptly and fairly.
43
+
44
+ All community leaders are obligated to respect the privacy and security of the reporter of any incident.
45
+
46
+ ## Enforcement Guidelines
47
+
48
+ Community leaders will follow these Community Impact Guidelines in determining the consequences for any action they deem in violation of this Code of Conduct:
49
+
50
+ ### 1. Correction
51
+
52
+ **Community Impact**: Use of inappropriate language or other behavior deemed unprofessional or unwelcome in the community.
53
+
54
+ **Consequence**: A private, written warning from community leaders, providing clarity around the nature of the violation and an explanation of why the behavior was inappropriate. A public apology may be requested.
55
+
56
+ ### 2. Warning
57
+
58
+ **Community Impact**: A violation through a single incident or series of actions.
59
+
60
+ **Consequence**: A warning with consequences for continued behavior. No interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, for a specified period of time. This includes avoiding interactions in community spaces as well as external channels like social media. Violating these terms may lead to a temporary or permanent ban.
61
+
62
+ ### 3. Temporary Ban
63
+
64
+ **Community Impact**: A serious violation of community standards, including sustained inappropriate behavior.
65
+
66
+ **Consequence**: A temporary ban from any sort of interaction or public communication with the community for a specified period of time. No public or private interaction with the people involved, including unsolicited interaction with those enforcing the Code of Conduct, is allowed during this period. Violating these terms may lead to a permanent ban.
67
+
68
+ ### 4. Permanent Ban
69
+
70
+ **Community Impact**: Demonstrating a pattern of violation of community standards, including sustained inappropriate behavior, harassment of an individual, or aggression toward or disparagement of classes of individuals.
71
+
72
+ **Consequence**: A permanent ban from any sort of public interaction within the community.
73
+
74
+ ## Attribution
75
+
76
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 2.0,
77
+ available at https://www.contributor-covenant.org/version/2/0/code_of_conduct.html.
78
+
79
+ Community Impact Guidelines were inspired by [Mozilla's code of conduct enforcement ladder](https://github.com/mozilla/diversity).
80
+
81
+ [homepage]: https://www.contributor-covenant.org
82
+
83
+ For answers to common questions about this code of conduct, see the FAQ at
84
+ https://www.contributor-covenant.org/faq. Translations are available at https://www.contributor-covenant.org/translations.
data/Gemfile ADDED
@@ -0,0 +1,12 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in lib-tl1-huawei.gemspec
6
+ gemspec
7
+
8
+ gem 'rake', '~> 13.0'
9
+
10
+ gem 'rspec', '~> 3.0'
11
+ gem 'rubocop', group: 'development'
12
+
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2022 Piotr Wojcieszonek
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,47 @@
1
+ # Lib::Tl1::Huawei
2
+
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/lib/tl1/huawei`. To experiment with that code, run `bin/console` for an interactive prompt.
4
+
5
+ TODO: Delete this and the text above, and describe your gem
6
+
7
+ ## Installation
8
+
9
+ Add this line to your application's Gemfile:
10
+
11
+ ```ruby
12
+ gem 'lib-tl1-huawei'
13
+ ```
14
+
15
+ And then execute:
16
+
17
+ $ bundle install
18
+
19
+ Or install it yourself as:
20
+
21
+ $ gem install lib-tl1-huawei
22
+
23
+ ## Usage
24
+
25
+ TODO: Write usage instructions here
26
+
27
+ ## Development
28
+
29
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
30
+
31
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
32
+
33
+ ## Contributing
34
+
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/lib-tl1-huawei. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [code of conduct](https://github.com/[USERNAME]/lib-tl1-huawei/blob/master/CODE_OF_CONDUCT.md).
36
+
37
+ ## License
38
+
39
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
40
+
41
+ ## Code of Conduct
42
+
43
+ Everyone interacting in the Lib::Tl1::Huawei project's codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/lib-tl1-huawei/blob/master/CODE_OF_CONDUCT.md).
44
+
45
+ ## NBI U2000 Port
46
+ 9819
47
+
data/Rakefile ADDED
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "bundler/gem_tasks"
4
+ require "rspec/core/rake_task"
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'lib/tl1'
4
+
5
+ module Lib
6
+ module TL1
7
+ module Huawei
8
+ module Message
9
+ class Input < Lib::TL1::Message::Input
10
+
11
+ def initialize(command: nil, tid: nil, aid: nil, ctag: nil, gb: nil, payload: nil)
12
+ command = self.class.name.split('::').last.sub(/(.)([A-Z])/, '\1-\2').upcase if command.nil?
13
+ super
14
+ end
15
+
16
+ private
17
+
18
+ def __aid(**aid)
19
+ hash_to_string **aid
20
+ end
21
+
22
+ def __show_option(*show_option)
23
+ show_option.empty? ? nil : "SHOWOPTION=#{show_option.map { |option| option.to_s.delete('_') }.join(' ') }"
24
+ end
25
+
26
+ def hash_to_string(**hash)
27
+ hash.reject { |k, v| v.nil? }.map { |k, v| "#{k.to_s.delete('_').upcase}=#{v.to_s}" }.join(',')
28
+ end
29
+
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,20 @@
1
+ require_relative "input"
2
+
3
+ module Lib
4
+ module TL1
5
+ module Huawei
6
+ module Message
7
+ class Login < Lib::TL1::Huawei::Message::Input
8
+ attr_reader :password, :username
9
+
10
+ def initialize(username:, password:)
11
+ @username = username
12
+ @password = password
13
+ super(payload: "UN=#{username},PWD=#{password}")
14
+ end
15
+
16
+ end
17
+ end
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'input'
4
+
5
+ module Lib
6
+ module TL1
7
+ module Huawei
8
+ module Message
9
+ class Logout < Lib::TL1::Huawei::Message::Input
10
+ def initialize
11
+ super
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'input'
4
+
5
+ module Lib
6
+ module TL1
7
+ module Huawei
8
+ module Message
9
+ class LstBmsVersion < Lib::TL1::Huawei::Message::Input
10
+ def initialize
11
+ super
12
+ end
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,15 @@
1
+ require_relative "input"
2
+
3
+ module Lib
4
+ module TL1
5
+ module Huawei
6
+ module Message
7
+ class LstEmfSysInfo < Lib::TL1::Huawei::Message::Input
8
+ def initialize
9
+ super
10
+ end
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'input'
4
+ module Lib
5
+ module TL1
6
+ module Huawei
7
+ module Message
8
+ class LstGemConnection < Lib::TL1::Huawei::Message::Input
9
+ attr_reader :did, :dev, :frame_number, :slot_number, :port_number, :ont_id, :gem_port_id, :vlan_id, :show_option
10
+
11
+ def initialize(
12
+ did: nil, dev: nil, frame_number: nil, slot_number: nil, port_number: nil,
13
+ ont_id: nil, gem_port_id: nil, vlan_id: nil, show_option: []
14
+ )
15
+ @did = did
16
+ @dev = dev
17
+ @frame_number = frame_number
18
+ @slot_number = slot_number
19
+ @port_number = port_number
20
+ @ont_id = ont_id
21
+ @gem_port_id = gem_port_id
22
+ @vlan_id = vlan_id
23
+ @show_option = show_option
24
+ super(
25
+ aid: __aid(
26
+ did: did, dev: dev, fn: frame_number, sn: slot_number, pn: port_number,
27
+ ont_id: ont_id, gem_port_id: gem_port_id, vlan_id: vlan_id
28
+ ),
29
+ payload: __show_option(*show_option)
30
+ )
31
+ end
32
+ alias fn frame_number
33
+ alias pn port_number
34
+ alias sn slot_number
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'input'
4
+ module Lib
5
+ module TL1
6
+ module Huawei
7
+ module Message
8
+ class LstGemPort < Lib::TL1::Huawei::Message::Input
9
+ attr_reader :did, :dev, :frame_number, :slot_number, :port_number, :ont_id, :gem_port_id, :show_option
10
+
11
+ def initialize(
12
+ did: nil, dev: nil, frame_number: nil, slot_number: nil, port_number: nil,
13
+ ont_id: nil, gem_port_id: nil, show_option: []
14
+ )
15
+ @did = did
16
+ @dev = dev
17
+ @frame_number = frame_number
18
+ @slot_number = slot_number
19
+ @port_number = port_number
20
+ @ont_id = ont_id
21
+ @gem_port_id = gem_port_id
22
+ @show_option = show_option
23
+ super(
24
+ aid: __aid(
25
+ did: did, dev: dev, fn: frame_number, sn: slot_number,
26
+ pn: port_number, ont_id: ont_id, gem_port_id: gem_port_id
27
+ ),
28
+ payload: __show_option(*show_option)
29
+ )
30
+ end
31
+ alias fn frame_number
32
+ alias pn port_number
33
+ alias sn slot_number
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,34 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'input'
4
+
5
+ module Lib
6
+ module TL1
7
+ module Huawei
8
+ module Message
9
+ class LstGponNniPort < Lib::TL1::Huawei::Message::Input
10
+
11
+ attr_reader :did, :dev, :frame_number, :slot_number, :port_number, :ont_sn
12
+
13
+ def initialize(did: nil, dev: nil, frame_number: nil, slot_number: nil, port_number: nil, ont_sn: nil)
14
+ @did = did
15
+ @dev = dev
16
+ @frame_number = frame_number
17
+ @slot_number = slot_number
18
+ @port_number = port_number
19
+ @ont_sn = ont_sn
20
+ super(
21
+ aid: __aid(
22
+ did: did, dev: dev, fn: frame_number, sn: slot_number, pn: port_number, ont_sn: ont_sn
23
+ )
24
+ )
25
+ end
26
+
27
+ alias fn frame_number
28
+ alias pn port_number
29
+ alias sn slot_number
30
+ end
31
+ end
32
+ end
33
+ end
34
+ end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'input'
4
+
5
+ module Lib
6
+ module TL1
7
+ module Huawei
8
+ module Message
9
+ class LstGponDdmInfo < Lib::TL1::Huawei::Message::Input
10
+ attr_reader :did, :dev, :frame_number, :slot_number, :port_number
11
+
12
+ def initialize(did: nil, dev: nil, frame_number: nil, slot_number: nil, port_number: nil)
13
+ @did = did
14
+ @dev = dev
15
+ @frame_number = frame_number
16
+ @slot_number = slot_number
17
+ @port_number = port_number
18
+ super(
19
+ aid: __aid(
20
+ did: did, dev: dev, fn: frame_number, sn: slot_number, pn: port_number
21
+ )
22
+ )
23
+ end
24
+
25
+ alias fn frame_number
26
+ alias pn port_number
27
+ alias sn slot_number
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'input'
4
+
5
+ module Lib
6
+ module TL1
7
+ module Huawei
8
+ module Message
9
+ class LstGponLineProfile < Lib::TL1::Huawei::Message::Input
10
+ attr_reader :did, :dev, :prof_id
11
+
12
+ def initialize(did: nil, dev: nil, prof_id: nil)
13
+ @did = did
14
+ @dev = dev
15
+ @prof_id = prof_id
16
+ super(
17
+ payload: hash_to_string(
18
+ did: did, dev: dev, prof_id: prof_id
19
+ )
20
+ )
21
+ end
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'input'
4
+
5
+ module Lib
6
+ module TL1
7
+ module Huawei
8
+ module Message
9
+ class LstGponNniPerf < Lib::TL1::Huawei::Message::Input
10
+ attr_reader :did, :dev, :frame_number, :slot_number, :port_number
11
+
12
+ def initialize(did: nil, dev: nil, frame_number: nil, slot_number: nil, port_number: nil)
13
+ @did = did
14
+ @dev = dev
15
+ @frame_number = frame_number
16
+ @slot_number = slot_number
17
+ @port_number = port_number
18
+ super(
19
+ aid: __aid(
20
+ did: did, dev: dev, fn: frame_number, sn: slot_number, pn: port_number
21
+ )
22
+ )
23
+ end
24
+
25
+ alias fn frame_number
26
+ alias pn port_number
27
+ alias sn slot_number
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -0,0 +1,26 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'input'
4
+
5
+ module Lib
6
+ module TL1
7
+ module Huawei
8
+ module Message
9
+ class LstGponNniPort < Lib::TL1::Huawei::Message::Input
10
+ attr_reader :did, :dev, :show_option
11
+
12
+ def initialize(did: nil, dev: nil, show_option: [])
13
+ @did = did
14
+ @dev = dev
15
+ @show_option = show_option
16
+ super(
17
+ aid: __aid(did: did, dev: dev),
18
+ payload: __show_option(*show_option)
19
+ )
20
+ end
21
+
22
+ end
23
+ end
24
+ end
25
+ end
26
+ end
@@ -0,0 +1,39 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'input'
4
+
5
+ module Lib
6
+ module TL1
7
+ module Huawei
8
+ module Message
9
+ class LstGponOntEthPortDetail < Lib::TL1::Huawei::Message::Input
10
+ attr_reader :did, :dev, :frame_number, :slot_number, :port_number, :ont_id, :ont_name, :ont_port_id
11
+
12
+ def initialize(
13
+ did: nil, dev: nil, frame_number: nil, slot_number: nil, port_number: nil,
14
+ ont_id: nil, ont_name: nil, ont_port_id: nil
15
+ )
16
+ @did = did
17
+ @dev = dev
18
+ @frame_number = frame_number
19
+ @slot_number = slot_number
20
+ @port_number = port_number
21
+ @ont_id = ont_id
22
+ @ont_name = ont_name
23
+ @ont_port_id = ont_port_id
24
+ super(
25
+ aid: __aid(
26
+ did: did, dev: dev, fn: frame_number, sn: slot_number, pn: port_number,
27
+ ont_id: ont_id, ont_name: ont_name, ont_port_id: ont_port_id
28
+ )
29
+ )
30
+ end
31
+
32
+ alias fn frame_number
33
+ alias pn port_number
34
+ alias sn slot_number
35
+ end
36
+ end
37
+ end
38
+ end
39
+ end
@@ -0,0 +1,38 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative 'input'
4
+
5
+ module Lib
6
+ module TL1
7
+ module Huawei
8
+ module Message
9
+ class LstGponOntEthPortPerf < Lib::TL1::Huawei::Message::Input
10
+ attr_reader :did, :dev, :frame_number, :slot_number, :port_number, :ont_id, :ont_port_id
11
+
12
+ def initialize(
13
+ did: nil, dev: nil, frame_number: nil, slot_number: nil, port_number: nil,
14
+ ont_id: nil, ont_port_id: nil
15
+ )
16
+ @did = did
17
+ @dev = dev
18
+ @frame_number = frame_number
19
+ @slot_number = slot_number
20
+ @port_number = port_number
21
+ @ont_id = ont_id
22
+ @ont_port_id = ont_port_id
23
+ super(
24
+ aid: __aid(
25
+ did: did, dev: dev, fn: frame_number, sn: slot_number, pn: port_number,
26
+ ont_id: ont_id, ont_port_id: ont_port_id
27
+ )
28
+ )
29
+ end
30
+
31
+ alias fn frame_number
32
+ alias pn port_number
33
+ alias sn slot_number
34
+ end
35
+ end
36
+ end
37
+ end
38
+ end