hi , i am new in perl and i am testing data plane behaviour of virtual router for this i wrote a simple code below which work well till second last line but in the last line where i am configuring router with static route it shows me error that syntax is wrong although the command is correct to configure static route.Can any body help me to tell how to configure static route in perl?
system(" vmm ping ");
print" Enter the Router you want to connect with ";
$router = <>;
chomp ($router);
$cmd = " ssh $router traceroute 10.0.0.128 > output1.txt";
system ($cmd);
system( "ssh $router cli edit");
system ("set routing-options static route 10.0.0.128 next-hop 10.0.0.1
+10" );