С этим вроде разобрался, но в такой схеме вылезла другая проблема.
Вот как настроил:
cisco и speed_1 имеют разные типы устройств и разные типы сервисов
Конфигурация cisco:
Код:
#Команды создания сервиса на устройстве.
sa.command.serv.create.1=vlan database
sa.command.serv.create.2=vlan $vlan
sa.command.serv.create.3=exit
sa.command.serv.create.4=interface fe$port
sa.command.serv.create.5=no shutdown
sa.command.serv.create.6=switchport mode access
sa.command.serv.create.7=switchport access vlan $vlan
sa.command.serv.create.8=exit
sa.command.serv.create.9=interface ge3
sa.command.serv.create.10=switchport trunk allowed vlan add $vlan
sa.command.serv.create.11=exit
#Команды удаления сервиса с устройства.
sa.command.serv.cancel.1=interface fe$port
sa.command.serv.cancel.2=switchport access vlan 999
sa.command.serv.cancel.3=shutdown
sa.command.serv.cancel.4=exit
Конфигурация speed:
Код:
#speedRate=set speed=$param($option,al,100)
#sa.command.inetOption.1.enable=$macros($param(speedRate))
sa.command.inetOption.1.enable=set speed=$param($option,al,100)
sa.command.inetOption.2.enable=set speed=$param($option,al,100)
sa.command.inetOption.3.enable=set speed=$param($option,al,100)
sa.command.inetOption.4.enable=set speed=$param($option,al,100)
sa.command.inetOption.5.enable=set speed=$param($option,al,100)
sa.command.inetOption.6.enable=set speed=$param($option,al,100)
sa.command.inetOption.7.enable=set speed=$param($option,al,100)
sa.command.inetOption.8.enable=set speed=$param($option,al,100)
sa.command.inetOption.9.enable=set speed=$param($option,al,100)
sa.command.inetOption.10.enable=set speed=$param($option,al,100)
sa.command.inetOption.11.enable=set speed=$param($option,al,100)
sa.command.inetOption.12.enable=set speed=$param($option,al,100)
sa.command.inetOption.13.enable=set speed=$param($option,al,100)
sa.command.inetOption.14.enable=set speed=$param($option,al,100)
sa.command.inetOption.15.enable=set speed=$param($option,al,100)
sa.command.inetOption.16.enable=set speed=$param($option,al,100)
sa.command.inetOption.17.enable=set speed=$param($option,al,100)
sa.command.inetOption.18.enable=set speed=$param($option,al,100)
sa.command.inetOption.19.enable=set speed=$param($option,al,100)
sa.command.inetOption.20.enable=set speed=$param($option,al,100)
sa.command.inetOption.21.enable=set speed=$param($option,al,100)
sa.command.inetOption.22.enable=set speed=$param($option,al,100)
sa.command.inetOption.23.enable=set speed=$param($option,al,100)
Тарифный план:
Вроде бы все хорошо, но set speed выполняется как на speed, так и на cisco.
Если в тарифном дереве делать фильтр по типу сервиса - вообще не выполняются команды speed
И может быть есть вариант как заменить sa.command.inetOption.1.enable=set speed=$param($option,al,100)
на что то попроще, что бы не указывать все опции....
Версия: