@@ -94,6 +94,11 @@ def look_record():
9494 mask = selected_record ['inputs' ].get ('mask' , None )
9595 hosts = selected_record ['inputs' ].get ('hosts' , None )
9696 subnet_input = selected_record ['inputs' ].get ('subnet_input' , None )
97+ symbol = selected_record ['inputs' ].get ('symbol' , None )
98+ network_merge_input = selected_record ['inputs' ].get ('network_merge_input' , None )
99+ supernet_split_input = selected_record ['inputs' ].get ('supernet_split_input' , None )
100+ checker_cidr_1 = selected_record ['inputs' ].get ('checker_cidr_1' , None )
101+ checker_cidr_2 = selected_record ['inputs' ].get ('checker_cidr_2' , None )
97102
98103 # 动态检查是否有值,若没有则跳过该字段
99104 inputs_str = ""
@@ -105,6 +110,16 @@ def look_record():
105110 inputs_str += f"主机数: { hosts } \n "
106111 if subnet_input :
107112 inputs_str += f"子网输入: { subnet_input } \n "
113+ if symbol :
114+ inputs_str += f"输入字符: { symbol } \n "
115+ if network_merge_input :
116+ inputs_str += f"需要合并的网段:\n { network_merge_input } \n "
117+ if supernet_split_input :
118+ inputs_str += f"需要拆分的超网及目标长度:\n { supernet_split_input } \n "
119+ if checker_cidr_1 :
120+ inputs_str += f"需要验证的CIDR或IP:\n { checker_cidr_1 } \n "
121+ if checker_cidr_2 :
122+ inputs_str += f"目标CIDR网段: \n { checker_cidr_2 } \n "
108123
109124 # 如果没有任何输入信息,显示默认提示
110125 if not inputs_str :
@@ -174,6 +189,11 @@ def copy_record():
174189 mask = selected_record ['inputs' ].get ('mask' , None )
175190 hosts = selected_record ['inputs' ].get ('hosts' , None )
176191 subnet_input = selected_record ['inputs' ].get ('subnet_input' , None )
192+ symbol = selected_record ['inputs' ].get ('symbol' , None )
193+ network_merge_input = selected_record ['inputs' ].get ('network_merge_input' , None )
194+ supernet_split_input = selected_record ['inputs' ].get ('supernet_split_input' , None )
195+ checker_cidr_1 = selected_record ['inputs' ].get ('checker_cidr_1' , None )
196+ checker_cidr_2 = selected_record ['inputs' ].get ('checker_cidr_2' , None )
177197
178198 inputs_str = ""
179199 if ip :
@@ -184,6 +204,16 @@ def copy_record():
184204 inputs_str += f"主机数: { hosts } \n "
185205 if subnet_input :
186206 inputs_str += f"子网输入: { subnet_input } \n "
207+ if symbol :
208+ inputs_str += f"输入字符: { symbol } \n "
209+ if network_merge_input :
210+ inputs_str += f"需要合并的网段:\n { network_merge_input } \n "
211+ if supernet_split_input :
212+ inputs_str += f"需要拆分的超网及目标长度:\n { supernet_split_input } \n "
213+ if checker_cidr_1 :
214+ inputs_str += f"需要验证的CIDR或IP:\n { checker_cidr_1 } \n "
215+ if checker_cidr_2 :
216+ inputs_str += f"目标CIDR网段: \n { checker_cidr_2 } \n "
187217
188218 if not inputs_str :
189219 inputs_str = "没有输入信息"
0 commit comments