var1变量的输出如下:
Name: prod
Default Network: Yes
VLAN ID: 2
Operational VLAN: SWA
Config Qual: N/A
Name: dev
Default Network: No
VLAN ID: 3
Operational VLAN: SWA
Config Qual: N/A
如果VLAN ID = 2
,我想将Name
替换为prod1
,如果VLAN ID = 3
,我希望将Name
替换为dev1
。< / p>
这是为了实现问题Click here