003 File Manager
Current Path:
/usr/local/lib/python3.8/site-packages/salt/templates/virt
usr
/
local
/
lib
/
python3.8
/
site-packages
/
salt
/
templates
/
virt
/
📁
..
📄
libvirt_chardevs.jinja
(727 B)
📄
libvirt_disks.jinja
(744 B)
📄
libvirt_domain.jinja
(12.25 KB)
📄
libvirt_macros.jinja
(179 B)
📄
libvirt_network.jinja
(3.09 KB)
📄
libvirt_pool.jinja
(2.6 KB)
📄
libvirt_secret.jinja
(316 B)
📄
libvirt_volume.jinja
(1.11 KB)
Editing: libvirt_chardevs.jinja
{% macro chardev(dev) -%} {% if dev.type == "unix" -%} <source mode="bind" path="{{ dev.path }}"/> {% elif dev.type in ["udp", "tcp"] -%} <source mode="bind" host="{{ dev.get('host', '0.0.0.0') }}" service="{{ dev.port }}" {% if dev.get('tls') is not none %}tls="{{'yes' if dev.tls else 'no'}}"{% endif %}/> {% elif dev.type in ["pipe", "dev", "pty", "file"] and dev.path -%} <source path="{{ dev.path }}"/> {%- endif %} {% if dev.type == "tcp" -%} <protocol type="{{ dev.protocol }}"/> {%- endif %} {% if "target_port" in dev or "target_type" in dev -%} <target port="{{ dev.get('target_port', 0) }}" {% if dev.target_type %}type="{{ dev.target_type }}"{% endif %}/> {%- endif %} {%- endmacro %}
Upload File
Create Folder