Hello!
I'm trying to write op script that changes policers attached to an interface.
It fails to work with error:
minotaur@br1-gdr.ki> op change-policer interface ge-0/0/0.0 unit 400 policer-in pol-50Mbit policer-out pol-50Mbit
Changing policers on interface ge-0/0/0.0.400
unit
syntax error
unit
syntax error
2
I cannot find why it does not work because XML generated by it looks ok to me:
Oct 21 21:27:30 begin dump
<load-configuration format="xml" action="">
<configuration>
<interfaces>
<interface>
<name>ge-0/0/0.0</name>
<unit>
<name>400</name>
<family>
<inet>
<policer>
<input>pol-50Mbit</input>
<output>pol-50Mbit</output>
</policer>
</inet>
</family>
</unit>
</interface>
</interfaces>
</configuration>
</load-configuration>Oct 21 21:27:30 end dump
Any help will be appreciated! Thanks.
P.S. Script is attached.
#SCRIPTS