[Xorp-users] CLI spin fix (hack)

Ben Greear greearb at candelatech.com
Sun Sep 30 11:22:57 PDT 2007


Pavlin Radoslavov wrote:
> Ben Greear <greearb at candelatech.com> wrote:
>
>   
>> It seems that if you pipe multiple commands into the CLI, it will busy
>> spin waiting for the previous command to complete.  Since 'commit'
>> can take multiple seconds when adding an interface, this eats a lot
>> of CPU.
>>     
>
> Could you clarify what you mean by piping multiple commands into the
> CLI. Is it when you use multiple "-c <cmd>" arguments after applying
> your second patch.
>   

Yes, or when you do xorpsh < cmd_file.txt
where cmd_file.txt has several lines in it, like:

configure
remove interface foo
commit
...
exit
exit

-- 
Ben Greear <greearb at candelatech.com> 
Candela Technologies Inc  http://www.candelatech.com




More information about the Xorp-users mailing list