network-utility 1.1.8 → 1.1.10
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/document/config.md +3 -3
- data/document/if-CR16018-F.md +2 -2
- data/document/if-M6000-18S.md +1 -1
- data/document/if-NE40E-X16.md +1 -1
- data/network.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 359c2a418cd608485e5294848265847fd25923ac4017f12e9e4d418efe5fcd31
|
4
|
+
data.tar.gz: 0c1f6c130bdd97c00a91e5ac6b6fe7049dab56a7b8e536da4f0adfd7809efd02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0b193e331aeebc7a27e758c41fbe99417f146e9457c30198ebc387d3ce1affb88c93eaac4e5856d5bd52fd36287e2e3f2485df884410392c99a69750e8bfc419
|
7
|
+
data.tar.gz: 17f46ace27713d94c39daea5cc5698755865eeb2daf963fccc4e07ab417797a5adf8c745df53177ad07b49514ceba79fb2f8e032a233f12ff18e081511ae7e1d
|
data/document/config.md
CHANGED
@@ -1049,7 +1049,7 @@ module CR16010H_F
|
|
1049
1049
|
module_function
|
1050
1050
|
|
1051
1051
|
def 配置解析 braw,*guards
|
1052
|
-
raw = braw
|
1052
|
+
raw = braw.gsub("\r","")
|
1053
1053
|
begin
|
1054
1054
|
raw.split("\n")
|
1055
1055
|
rescue
|
@@ -1086,7 +1086,7 @@ module CR16018_F
|
|
1086
1086
|
module_function
|
1087
1087
|
|
1088
1088
|
def 配置解析 braw,*guards
|
1089
|
-
raw = braw
|
1089
|
+
raw = braw.gsub("\r","")
|
1090
1090
|
begin
|
1091
1091
|
raw.split("\n")
|
1092
1092
|
rescue
|
@@ -1123,7 +1123,7 @@ module CR19000_20
|
|
1123
1123
|
module_function
|
1124
1124
|
|
1125
1125
|
def 配置解析 braw,*guards
|
1126
|
-
raw = braw
|
1126
|
+
raw = braw.gsub("\r","")
|
1127
1127
|
begin
|
1128
1128
|
raw.split("\n")
|
1129
1129
|
rescue
|
data/document/if-CR16018-F.md
CHANGED
@@ -36,7 +36,7 @@ module CR16018_F
|
|
36
36
|
|
37
37
|
def 特殊接口配置 接口集合
|
38
38
|
接口集合.collect{|接口|
|
39
|
-
接口 if /Virtual|NULL|LoopBack|M\-GigabitEthernet/.match(接口.split("\n")[0])
|
39
|
+
接口 if /Virtual|VE\-L2VPN|NULL|LoopBack|M\-GigabitEthernet/.match(接口.split("\n")[0])
|
40
40
|
}.compact.sort_by{|接口|接口.split("\n")[0]}
|
41
41
|
end
|
42
42
|
|
@@ -64,7 +64,7 @@ module CR16018_F
|
|
64
64
|
# func: 根据一个端口的描述信息,给出其格式化的类型、连接符、端口编号
|
65
65
|
def 端口识别 描述
|
66
66
|
连接符 = ''
|
67
|
-
type = /HundredGigE|GigabitEthernet|Ten\-GigabitEthernet|M\-GigabitEthernet|Bridge\-Aggregation|Route\-Aggregation|Virtual\-Template|NULL|LoopBack/.match(描述)
|
67
|
+
type = /HundredGigE|GigabitEthernet|Ten\-GigabitEthernet|M\-GigabitEthernet|Bridge\-Aggregation|Route\-Aggregation|Virtual\-Template|VE\-L2VPN|NULL|LoopBack/.match(描述)
|
68
68
|
类型 = type ? type.to_s : '未知类型'
|
69
69
|
port = /(\d+|\/|\.)*(\d+)/.match(描述.split(类型).join)
|
70
70
|
端口 = port ? port.to_s : '未知端口'
|
data/document/if-M6000-18S.md
CHANGED
@@ -757,7 +757,7 @@ module M6000_18S
|
|
757
757
|
invlan = eval(pattern[1].to_s.gsub('-','..'))
|
758
758
|
if exvlan.instance_of?(Range)
|
759
759
|
exvlan.each{|exv|vlan['qinq'] << [exv,invlan]}
|
760
|
-
elsif exvlan.instance_of?(Fixnum
|
760
|
+
elsif exvlan.instance_of?(Integer) # Fixnum
|
761
761
|
vlan['qinq'] << [exvlan,invlan]
|
762
762
|
end;next
|
763
763
|
end
|
data/document/if-NE40E-X16.md
CHANGED
@@ -68,7 +68,7 @@ module NE40E_X16
|
|
68
68
|
# func: 根据一个端口的描述信息,给出其格式化的类型、连接符、端口编号
|
69
69
|
def 端口识别 描述
|
70
70
|
连接符 = ''
|
71
|
-
type = /100GE|GE|GigabitEthernet|Global\-VE|Pos|Ethernet|Eth\-Trunk|Ip-Trunk|Tunnel|Vlanif|Virtual\-Template|NULL|LoopBack|Logic\-Channel|Aux/.match(描述)
|
71
|
+
type = /100GE|GE|GigabitEthernet|Global\-VE|Pos|Ethernet|Eth\-Trunk|Ip-Trunk|ServiceIf|Tunnel|Vlanif|Virtual\-Template|NULL|LoopBack|Logic\-Channel|Aux/.match(描述)
|
72
72
|
类型 = type ? type.to_s : '未知类型'
|
73
73
|
port = /(\d+|\/|\.)*(\d+)/.match(描述.split(类型).join)
|
74
74
|
端口 = port ? port.to_s : '未知端口'
|
data/network.rb
CHANGED