Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Oct 23rd, 2012  |  syntax: None  |  size: 0.32 KB  |  views: 34  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. {% macro net_param(param, value) -%}
  2.   {% if value -%}
  3.   {{ param }} {{ value }}
  4.   {%- endif %}
  5. {%- endmacro %}
  6.  
  7. auto {{ net_if }}
  8. iface {{ net_if }} inet static
  9.   address {{ net_ip }}
  10.   netmask {{ net_mask }}
  11.   network {{ net_addr }}
  12.   {{ net_param('gateway', net_gw) }}
  13.   {{ net_param('broadcast', net_bcast) }}
  14. # end
clone this paste RAW Paste Data