寻找Python代码,将下面的行Python代码为聚合线
interface port-channel 1
ALLOWED_VLAN 2,4-7,27,30-31,38-39,41-42,48-50
ALLOWED_VLAN 74,678,1101-1102,1201-1202
interface port-channel 2
ALLOWED_VLAN 37,51-52,75-76,1051-1052,2001
interface port-channel 101
ALLOWED_VLAN 10,18-19,37,39,51-52,75-76,901-902
ALLOWED_VLAN 2901-2902,3204,3305
转换成
interface port-channel 1
ALLOWED_VLAN 2,4-7,27,30-31,38-39,41-42,48-50,74,678,1101-1102,1201-1202
interface port-channel 2
ALLOWED_VLAN 37,51-52,75-76,1051-1052,2001
interface port-channel 101
ALLOWED_VLAN 10,18-19,37,39,51-52,75-76,901-902,2901-2902,3204,3305
感谢塞巴斯蒂安,我会尝试, –