用python读取excel表中的特定表格数据,然后根据一定规则,写到TXT文档中。
vlan vpn-instance ipv4 ipv6
3560 GL_HA 1.1.168.137 255.255.255.252 2001:2001:952:2001:1::200/127
3580 GL_SC 1.1.182.137 255.255.255.252 2001:2001:953:2001:1::200/127
写出来的txt文档如下:
interface Eth-Trunk1.3560
vlan-type dot1q 3560
ip binding vpn-instance GL_HA
ipv6 enable
ip address 1.1.168.137 255.255.255.252
ipv6 address 2001:2001:952:2001:1::200/127
#
interface Eth-Trunk1.3580
vlan-type dot1q 3580
ip binding vpn-instance GL_SC
ipv6 enable
ip address 1.1.182.137 255.255.255.252
ipv6 address 2001:2001:953:2001:1::200/127