network-utility 1.1.4 → 1.1.5

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 23f18332854c170df2b04dd20be2e6f6879ef3e934a98745008c147633973d2d
4
- data.tar.gz: a9ac6e6461595415f2417b337d0b7cac064bed839f0fd5100b455c65c82bbc85
3
+ metadata.gz: 243fbfff151f4da4608a6e9f24e01a41c19080952bc6a8121a7ea973ec6d57fd
4
+ data.tar.gz: ea4449c681fa5f018913ddaf8fc45375ad0e3310b691ba6d62db620434c970b9
5
5
  SHA512:
6
- metadata.gz: f06a78c3d35a93a3cff081c2cd472dec4c05fe2467262c3fcfb62dda916d292af34f1968b1e5115f84de4e590444069a6ec3e7f9805a17f0ed1de2001acd001e
7
- data.tar.gz: 965189ade7f96895262c02b63b7c7b7b2cf09b23fcd4744f23c70797a2534c71714cfa1361195830e14d789842f625b483f39fd4e5121b9654e3f0c10d57c8c0
6
+ metadata.gz: d02a65bd209c2fcd90333f8bf44fbe51cb5550c1be221858cc1e5eab97025adb76af7c188adde81b57a152266de3c7b88b775f076ab30a4904b7dbccd0b71cec
7
+ data.tar.gz: 7bc6ddeb37814acc210c087682f1cbf95592c832c0ae4ab069f87d5cffde669834456bedae839a49c6458616f7672cb54a5c86bf6d07ae416920c9256ce85b99
@@ -3,7 +3,7 @@
3
3
 
4
4
  ```ruby
5
5
  @sign << ['ALCATEL7750', '接口配置', 'PENDING']
6
- @sign << ['ALCATEL7750', '接口分检', 'PENDING']
6
+ @sign << ['ALCATEL7750', '接口分捡', 'PENDING']
7
7
  @sign << ['ALCATEL7750', '端口识别', 'PENDING']
8
8
  @sign << ['ALCATEL7750', '接口地址', 'PENDING']
9
9
  @sign << ['ALCATEL7750', '接口描述', 'PENDING']
@@ -19,7 +19,7 @@ module ALCATEL7750
19
19
  []
20
20
  end
21
21
 
22
- def 接口分检 接口集合
22
+ def 接口分捡 接口集合
23
23
  []
24
24
  end
25
25
 
data/document/if-C7609.md CHANGED
@@ -3,7 +3,7 @@
3
3
 
4
4
  ```ruby
5
5
  @sign << ['C7609', '接口配置']
6
- @sign << ['C7609', '接口分检']
6
+ @sign << ['C7609', '接口分捡']
7
7
  @sign << ['C7609', '端口识别']
8
8
  @sign << ['C7609', '接口地址']
9
9
  @sign << ['C7609', '接口描述']
@@ -19,7 +19,7 @@ module C7609
19
19
  []
20
20
  end
21
21
 
22
- def 接口分检 接口集合
22
+ def 接口分捡 接口集合
23
23
  []
24
24
  end
25
25
 
@@ -3,7 +3,7 @@
3
3
 
4
4
  ```ruby
5
5
  @sign << ['CRS-16', '接口配置']
6
- @sign << ['CRS-16', '接口分检']
6
+ @sign << ['CRS-16', '接口分捡']
7
7
  @sign << ['CRS-16', '端口识别']
8
8
  @sign << ['CRS-16', '接口地址']
9
9
  @sign << ['CRS-16', '接口描述']
@@ -19,7 +19,7 @@ module CRS_16
19
19
  []
20
20
  end
21
21
 
22
- def 接口分检 接口集合
22
+ def 接口分捡 接口集合
23
23
  []
24
24
  end
25
25
 
@@ -40,7 +40,7 @@
40
40
  @sign << ["M6000-16E", "统计接口"]
41
41
 
42
42
  module M6000_16E
43
-
43
+ module_function
44
44
  #####################################################################################################
45
45
  # 接口/端口配置的基本查询
46
46
  # 接口集合 => 接口分检 => 物理接口集合,子接口集合,特殊接口集合
@@ -40,7 +40,7 @@
40
40
  @sign << ["M6000-8", "统计接口"]
41
41
 
42
42
  module M6000_8
43
-
43
+ module_function
44
44
  #####################################################################################################
45
45
  # 接口/端口配置的基本查询
46
46
  # 接口集合 => 接口分检 => 物理接口集合,子接口集合,特殊接口集合
@@ -40,7 +40,7 @@
40
40
  @sign << ["M6000-8E", "统计接口"]
41
41
 
42
42
  module M6000_8E
43
-
43
+ module_function
44
44
  #####################################################################################################
45
45
  # 接口/端口配置的基本查询
46
46
  # 接口集合 => 接口分检 => 物理接口集合,子接口集合,特殊接口集合
@@ -3,7 +3,7 @@
3
3
 
4
4
  ```ruby
5
5
  @sign << ['Nokia7750', '接口配置', 'PENDING']
6
- @sign << ['Nokia7750', '接口分检', 'PENDING']
6
+ @sign << ['Nokia7750', '接口分捡', 'PENDING']
7
7
  @sign << ['Nokia7750', '端口识别', 'PEN`DING']
8
8
  @sign << ['Nokia7750', '接口地址', 'PENDING']
9
9
  @sign << ['Nokia7750', '接口描述', 'PENDING']
@@ -19,7 +19,7 @@ module Nokia7750
19
19
  []
20
20
  end
21
21
 
22
- def 接口分检 接口集合
22
+ def 接口分捡 接口集合
23
23
  []
24
24
  end
25
25
 
@@ -526,14 +526,14 @@ module ZXCTN9000_18EA
526
526
  # func: 根据一个端口的描述信息,给出其格式化的类型、连接符、端口编号
527
527
  def 端口识别 描述
528
528
  描述 = 描述[0] if 描述.instance_of?(Array) # M6000取接口配置中名称部分 [name,<tag>...</tag>,...]
529
- type = /xgei|gei|smartgroup|loopback|extimer|vbui|null|guvi|gcvi|mgmt_eth|vei|spi|flexe_client|flexe_group|ptp|gps|qx_eth|qx|bvi|pw|subvlan/.match(描述)
529
+ type = /xgei|gei|ulei|smartgroup|loopback|extimer|vbui|null|guvi|gcvi|mgmt_eth|vei|spi|flexe_client|flexe_group|ptp|gps|qx_eth|qx|bvi|pw|subvlan/.match(描述)
530
530
  类型 = type ? type.to_s : '未知类型'
531
531
  port = /(\d+|\/|\.)*(\d+)/.match(描述.split(类型).join)
532
532
  端口 = port ? port.to_s : '未知端口'
533
533
  端口 = '' if 类型=='mgmt_eth'
534
534
  连接符 = if ['smartgroup','loopback','vbui','null','mgmt_eth','vei','flexe_client','flexe_group','qx','bvi','pw','subvlan'].include?(类型)
535
535
  ''
536
- elsif ['xgei','gei','extimer','guvi','gcvi','spi','ptp','gps','qx_eth'].include?(类型)
536
+ elsif ['xgei','gei','ulei','extimer','guvi','gcvi','spi','ptp','gps','qx_eth'].include?(类型)
537
537
  '-'
538
538
  end
539
539
  return 类型,连接符,端口
@@ -526,14 +526,14 @@ module ZXCTN9000_8EA
526
526
  # func: 根据一个端口的描述信息,给出其格式化的类型、连接符、端口编号
527
527
  def 端口识别 描述
528
528
  描述 = 描述[0] if 描述.instance_of?(Array) # M6000取接口配置中名称部分 [name,<tag>...</tag>,...]
529
- type = /xgei|gei|smartgroup|loopback|extimer|vbui|null|guvi|gcvi|mgmt_eth|vei|spi|flexe_client|flexe_group|ptp|gps|qx_eth|qx|bvi|pw|subvlan/.match(描述)
529
+ type = /xgei|gei|ulei|smartgroup|loopback|extimer|vbui|null|guvi|gcvi|mgmt_eth|vei|spi|flexe_client|flexe_group|ptp|gps|qx_eth|qx|bvi|pw|subvlan/.match(描述)
530
530
  类型 = type ? type.to_s : '未知类型'
531
531
  port = /(\d+|\/|\.)*(\d+)/.match(描述.split(类型).join)
532
532
  端口 = port ? port.to_s : '未知端口'
533
533
  端口 = '' if 类型=='mgmt_eth'
534
534
  连接符 = if ['smartgroup','loopback','vbui','null','mgmt_eth','vei','flexe_client','flexe_group','qx','bvi','pw','subvlan'].include?(类型)
535
535
  ''
536
- elsif ['xgei','gei','extimer','guvi','gcvi','spi','ptp','gps','qx_eth'].include?(类型)
536
+ elsif ['xgei','gei','ulei','extimer','guvi','gcvi','spi','ptp','gps','qx_eth'].include?(类型)
537
537
  '-'
538
538
  end
539
539
  return 类型,连接符,端口
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: network-utility
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.4
4
+ version: 1.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt