network-utility 1.1.28 → 1.1.29

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: 1ed31f6d3fd8bd8901b0f0b70f11e5a6ae2a29006dc77bd345e448fff7bb9b48
4
- data.tar.gz: 4cfd31e694af5307bc9358924dd2548a8315f646a5e16030eb21a248c03c02eb
3
+ metadata.gz: de383d07d38127a54118125a871116fffdde68feff561495af35d621cbd6477c
4
+ data.tar.gz: 8d8086c0b54c5c2916cf1656455ec2c8db118da31a573d6c97a293adb2bd20aa
5
5
  SHA512:
6
- metadata.gz: c2dd6922f7d9de15cf2d9ee5c7506993e2f7272e5a63ead6534a7f8324211e2d9ed7662401199ae4c35f4124905ca65286ff82985b0f5bf35085742af261a7d9
7
- data.tar.gz: 1db2d8ed2c0b9ea7a16b04895cff626bcbaad314fc3e72627b25ce49fe1e486fa8370bf60a61c0bd9a5f1ec081bb973674eaa1c3e6c907fc67fc49184f254376
6
+ metadata.gz: 965d4d24f3879da46c1e4495ba007977b4a28e32b568d5a012158a876d8ec8d81a705316bd0704313bf5376e19d52ff4a6aa222eb5c8e5fa14d7d9e7044f8506
7
+ data.tar.gz: a207162c2cf187f66b795ee4254d5c1df16b974a8cebffee328b49c75e361d5a4d33598a0bf3d37cb79bfb3e7bab563011ccd5fc0bb090d5ac2afc551266bb18
@@ -67,7 +67,7 @@ module CX600_X16A
67
67
  # func: 根据一个端口的描述信息,给出其格式化的类型、连接符、端口编号
68
68
  def 端口识别 描述
69
69
  连接符 = ''
70
- type = /GE|50\|100GE|50GE|100GE|GigabitEthernet|Pos|Ethernet|Eth\-Trunk|Global\-VE|FlexE\-100G|FlexE\-50\|100G|FlexE|Vlanif|Virtual\-Template|NULL|LoopBack|Logic\-Channel|Aux/.match(描述)
70
+ type = /GE|50\|100GE|50GE|100GE|GigabitEthernet|Pos|Virtual\-Ethernet|Ethernet|Eth\-Trunk|Global\-VE|FlexE\-100G|FlexE\-50\|100G|FlexE|Vlanif|Virtual\-Template|NULL|LoopBack|Logic\-Channel|Aux/.match(描述)
71
71
  类型 = type ? type.to_s : '未知类型'
72
72
  port = /(\d+|\/|\.)*(\d+)/.match(描述.split(类型).join)
73
73
  端口 = port ? port.to_s : '未知端口'
@@ -67,7 +67,7 @@ module CX600_X8A
67
67
  # func: 根据一个端口的描述信息,给出其格式化的类型、连接符、端口编号
68
68
  def 端口识别 描述
69
69
  连接符 = ''
70
- type = /GE|50\|100GE|50GE|100GE|GigabitEthernet|Pos|Ethernet|Eth\-Trunk|Global\-VE|FlexE\-100G|FlexE\-50\|100G|FlexE|Vlanif|Virtual\-Template|NULL|LoopBack|Logic\-Channel|Aux/.match(描述)
70
+ type = /GE|50\|100GE|50GE|100GE|GigabitEthernet|Pos|Virtual\-Ethernet|Ethernet|Eth\-Trunk|Global\-VE|FlexE\-100G|FlexE\-50\|100G|FlexE|Vlanif|Virtual\-Template|NULL|LoopBack|Logic\-Channel|Aux/.match(描述)
71
71
  类型 = type ? type.to_s : '未知类型'
72
72
  port = /(\d+|\/|\.)*(\d+)/.match(描述.split(类型).join)
73
73
  端口 = port ? port.to_s : '未知端口'
data/network.rb CHANGED
@@ -22,5 +22,5 @@
22
22
  ].each{|mod|require mod}
23
23
 
24
24
  module Network
25
- VERSION = '1.1.28'
25
+ VERSION = '1.1.29'
26
26
  end
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.28
4
+ version: 1.1.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt