|
- {%- from "linux/map.jinja" import system with context %}
- # default port is 514
- #PORT=6666
- {%- if system.netconsole is mapping and system.netconsole.port is defined %}
- PORT="{{ system.netconsole.port }}"
- {%- endif %}
-
- # unicast, could be multiline
- #netconsole ens3 192.168.1.32 fa:16:3e:8d:f6:d0
- {%- if system.netconsole is mapping and system.netconsole.target is mapping %}
- {%- for target, data in system.netconsole.target.items() %}
- {%- if data is mapping %}
- netconsole "{{ data.get('interface', '${interface}') }}" "{{ target }}" "{{ data.get('mac', '') }}"
- {%- endif %}
- {%- endfor %}
- {%- endif %}
-
- # set up dmesg log level
- # dmesg -n info
- {%- if system.netconsole is mapping and system.netconsole.loglevel is defined %}
- dmesg -n "{{ system.netconsole.loglevel }}"
- {%- endif %}
|