Open jimbos opened 2 weeks ago
As the title , we want to save config after display config , but Huawei save config has interact , just like that : "Are you sure to continue?[Y/N]:" So how should I to write the Model code to answer that ?
Take a look at the extended model i put here.
require 'oxidized/model/vrp.rb'
class VRP using Refinements
expect /^([\w\W]+)$/ do send "Y\n" end
cmd 'save' do |cfg|
comment cfg
end
Thx
BTW,the name is "vrp-extra.rb" , locate at ./config/oxidized/model/ .
As the title , we want to save config after display config , but Huawei save config has interact , just like that : "Are you sure to continue?[Y/N]:" So how should I to write the Model code to answer that ?