# File lib/hammer_cli_foreman/interface.rb, line 85 def mandatory_interfaces(host_id, nic_id) mandatory_options = [] get_interfaces(host_id)['results'].each do |nic| if (nic['primary'] || nic['provision']) && nic['id'] != nic_id mandatory_options << { 'id' => nic['id'], 'primary' => nic['primary'], 'provision' => nic['provision'] } end end mandatory_options end