You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I am trying to make a model file for cumulus where, different commands are executed based on the cumulus version whether net command is available or nv command is available.
cmd 'cat /etc/cumulus/etc.replace/os-release' do |cfg|
@cumulus_version = cfg.match(/^VERSION_ID=(\d+)\./)[1]
cfg = add_comment('VERSION') + cfg
end
this it is the code for that in the model file. The problem is @cumulus_version value is not being read in the following model file. something like this
if @cumulus_version == '4'
cmd 'net show lldp' do |cfg|
cfg = add_comment('LLDP') + cfg
end
end
I want to know if this is even possible?
The text was updated successfully, but these errors were encountered:
I am trying to make a model file for cumulus where, different commands are executed based on the cumulus version whether net command is available or nv command is available.
this it is the code for that in the model file. The problem is @cumulus_version value is not being read in the following model file. something like this
I want to know if this is even possible?
The text was updated successfully, but these errors were encountered: