lib-tl1-huawei 0.1.4 → 0.1.7
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.
- checksums.yaml +4 -4
- data/lib/lib/tl1/huawei/message/lst_board.rb +48 -0
- data/lib/lib/tl1/huawei/message/lst_frame.rb +29 -0
- data/lib/lib/tl1/huawei/message/lst_ont_run_info.rb +4 -1
- data/lib/lib/tl1/huawei/message/lst_port.rb +61 -0
- data/lib/lib/tl1/huawei/message.rb +3 -0
- data/lib/lib/tl1/huawei/version.rb +1 -1
- metadata +5 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c10629d5a9ed9ff0df5bf12fba25c18fa40a25ed5e4441ba7c943793e2942463
|
|
4
|
+
data.tar.gz: 95b5f4c1dcc55f2ee6ffef114f60726cdb8c707934274aaec927991c985764c0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 155cba36a2fc2151b38b6cd8364a40dab45cc887cce34071c486ed922c317c0aa22aec4da929ce9bc767bc4ca6a960da927fd24685e89b2d10f1ac9279df889d
|
|
7
|
+
data.tar.gz: bda7a5a2f0d646518a623588612266abe94e55389aee8558b36c6774878eabaa1eebe17bb093ee2537f8aeeade35ca7caca70337cffb6ab3b04affa4b89d3a6e
|
|
@@ -0,0 +1,48 @@
|
|
|
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 LstBoard < Lib::TL1::Huawei::Message::Input
|
|
10
|
+
|
|
11
|
+
attr_reader :dev, :did, :onu_locate_info, :frame_number, :slot_number, :board_type, :show_option
|
|
12
|
+
|
|
13
|
+
def initialize(
|
|
14
|
+
dev: nil,
|
|
15
|
+
did: nil,
|
|
16
|
+
onu_locate_info: nil,
|
|
17
|
+
frame_number: nil,
|
|
18
|
+
slot_number: nil,
|
|
19
|
+
board_type: nil,
|
|
20
|
+
show_option: nil
|
|
21
|
+
)
|
|
22
|
+
@dev = dev
|
|
23
|
+
@did = did
|
|
24
|
+
@frame_number = frame_number
|
|
25
|
+
@onu_locate_info = onu_locate_info
|
|
26
|
+
@slot_number = slot_number
|
|
27
|
+
@board_type = board_type
|
|
28
|
+
@show_option = show_option
|
|
29
|
+
|
|
30
|
+
super(
|
|
31
|
+
aid: hash_to_string(
|
|
32
|
+
dev: dev,
|
|
33
|
+
did: did,
|
|
34
|
+
onu_locate_info: onu_locate_info,
|
|
35
|
+
fn: frame_number,
|
|
36
|
+
sn: slot_number,
|
|
37
|
+
bt: board_type
|
|
38
|
+
),
|
|
39
|
+
payload: __show_option(*show_option)
|
|
40
|
+
)
|
|
41
|
+
end
|
|
42
|
+
|
|
43
|
+
end
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
end
|
|
47
|
+
end
|
|
48
|
+
|
|
@@ -0,0 +1,29 @@
|
|
|
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 LstFrame < Lib::TL1::Huawei::Message::Input
|
|
10
|
+
|
|
11
|
+
attr_reader :dev, :did, :frame_number, :show_option
|
|
12
|
+
|
|
13
|
+
def initialize(dev: nil, did: nil, frame_number: nil, show_option: nil)
|
|
14
|
+
@dev = dev
|
|
15
|
+
@did = did
|
|
16
|
+
@frame_number = frame_number
|
|
17
|
+
@show_option = show_option
|
|
18
|
+
super(
|
|
19
|
+
aid: hash_to_string(dev: dev, did: did, fn: frame_number),
|
|
20
|
+
payload: __show_option(*show_option)
|
|
21
|
+
)
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
end
|
|
25
|
+
end
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
end
|
|
29
|
+
|
|
@@ -12,7 +12,7 @@ module Lib
|
|
|
12
12
|
|
|
13
13
|
def initialize(
|
|
14
14
|
did: nil, dev: nil, frame_number: nil, slot_number: nil, port_number: nil, ont_id: nil,
|
|
15
|
-
ont_name: nil, ont_alias: nil
|
|
15
|
+
ont_name: nil, ont_alias: nil, show_option: []
|
|
16
16
|
)
|
|
17
17
|
@did = did
|
|
18
18
|
@dev = dev
|
|
@@ -26,6 +26,9 @@ module Lib
|
|
|
26
26
|
aid: hash_to_string(
|
|
27
27
|
did: did, dev: dev, fn: frame_number, sn: slot_number, pn: port_number,
|
|
28
28
|
ont_id: ont_id, ont_name: ont_name, ont_alias: ont_alias
|
|
29
|
+
),
|
|
30
|
+
payload: hash_to_string(
|
|
31
|
+
show_option: __show_option(*show_option)
|
|
29
32
|
)
|
|
30
33
|
)
|
|
31
34
|
end
|
|
@@ -0,0 +1,61 @@
|
|
|
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 LstPort < Lib::TL1::Huawei::Message::Input
|
|
10
|
+
|
|
11
|
+
attr_reader :port_alias, :dev, :did, :onu_locate_info, :frame_number, :slot_number, :port_number,
|
|
12
|
+
:port_type, :port_status, :db_only, :show_option
|
|
13
|
+
|
|
14
|
+
def initialize(
|
|
15
|
+
port_alias: nil,
|
|
16
|
+
dev: nil,
|
|
17
|
+
did: nil,
|
|
18
|
+
onu_locate_info: nil,
|
|
19
|
+
frame_number: nil,
|
|
20
|
+
slot_number: nil,
|
|
21
|
+
port_number: nil,
|
|
22
|
+
port_type: nil,
|
|
23
|
+
port_status: nil,
|
|
24
|
+
db_only: nil,
|
|
25
|
+
show_option: nil
|
|
26
|
+
)
|
|
27
|
+
@port_alias = port_alias
|
|
28
|
+
@dev = dev
|
|
29
|
+
@did = did
|
|
30
|
+
@onu_locate_info = onu_locate_info
|
|
31
|
+
@frame_number = frame_number
|
|
32
|
+
@slot_number = slot_number
|
|
33
|
+
@port_number = port_number
|
|
34
|
+
@port_type = port_type
|
|
35
|
+
@port_status = port_status
|
|
36
|
+
@db_only = db_only
|
|
37
|
+
@show_option = show_option
|
|
38
|
+
super(
|
|
39
|
+
aid: hash_to_string(
|
|
40
|
+
alias: port_alias,
|
|
41
|
+
dev: dev,
|
|
42
|
+
did: did,
|
|
43
|
+
onu_locate_info: onu_locate_info,
|
|
44
|
+
fn: frame_number,
|
|
45
|
+
sn: slot_number,
|
|
46
|
+
pn: port_number,
|
|
47
|
+
pt: port_type,
|
|
48
|
+
pstat: port_status,
|
|
49
|
+
db_only: db_only
|
|
50
|
+
),
|
|
51
|
+
payload: __show_option(*show_option)
|
|
52
|
+
)
|
|
53
|
+
end
|
|
54
|
+
|
|
55
|
+
end
|
|
56
|
+
end
|
|
57
|
+
end
|
|
58
|
+
end
|
|
59
|
+
end
|
|
60
|
+
|
|
61
|
+
|
|
@@ -42,3 +42,6 @@ require_relative 'message/lst_onu_nni_ddm_detail'
|
|
|
42
42
|
require_relative 'message/shake_hand'
|
|
43
43
|
require_relative 'message/lst_dev'
|
|
44
44
|
require_relative 'message/exception'
|
|
45
|
+
require_relative 'message/lst_board'
|
|
46
|
+
require_relative 'message/lst_frame'
|
|
47
|
+
require_relative 'message/lst_port'
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: lib-tl1-huawei
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Piotr Wojcieszonek
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2022-08-
|
|
11
|
+
date: 2022-08-20 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: lib-tl1
|
|
@@ -49,8 +49,10 @@ files:
|
|
|
49
49
|
- lib/lib/tl1/huawei/message/login.rb
|
|
50
50
|
- lib/lib/tl1/huawei/message/logout.rb
|
|
51
51
|
- lib/lib/tl1/huawei/message/lst_bms_version.rb
|
|
52
|
+
- lib/lib/tl1/huawei/message/lst_board.rb
|
|
52
53
|
- lib/lib/tl1/huawei/message/lst_dev.rb
|
|
53
54
|
- lib/lib/tl1/huawei/message/lst_emf_sys_info.rb
|
|
55
|
+
- lib/lib/tl1/huawei/message/lst_frame.rb
|
|
54
56
|
- lib/lib/tl1/huawei/message/lst_gem_connection.rb
|
|
55
57
|
- lib/lib/tl1/huawei/message/lst_gem_port.rb
|
|
56
58
|
- lib/lib/tl1/huawei/message/lst_gpon_auto_find.rb
|
|
@@ -83,6 +85,7 @@ files:
|
|
|
83
85
|
- lib/lib/tl1/huawei/message/lst_ont_voip_pstn_user.rb
|
|
84
86
|
- lib/lib/tl1/huawei/message/lst_ont_wan.rb
|
|
85
87
|
- lib/lib/tl1/huawei/message/lst_onu_nni_ddm_detail.rb
|
|
88
|
+
- lib/lib/tl1/huawei/message/lst_port.rb
|
|
86
89
|
- lib/lib/tl1/huawei/message/output.rb
|
|
87
90
|
- lib/lib/tl1/huawei/message/response.rb
|
|
88
91
|
- lib/lib/tl1/huawei/message/shake_hand.rb
|