Module: HammerCLIForeman::SubnetUpdateCreateCommons
- Defined in:
- lib/hammer_cli_foreman/subnet.rb
Instance Method Summary collapse
Instance Method Details
#request_params ⇒ Object
4 5 6 7 8 9 10 11 12 13 14 |
# File 'lib/hammer_cli_foreman/subnet.rb', line 4 def request_params params = super if option_prefix || option_mask if params['subnet']['network_type'] == 'IPv6' params['subnet']['cidr'] = (option_prefix || network_prefix).to_s else params['subnet']['mask'] = option_mask || network_mask end end params end |