diff --git a/doc/source/conf.py b/doc/source/conf.py index 33f6284..8f6a35e 100644 --- a/doc/source/conf.py +++ b/doc/source/conf.py @@ -231,7 +231,7 @@ latex_elements = { # author, documentclass [howto, manual, or own class]). latex_documents = [ (master_doc, 'doc-' + target_name + '.tex', - title.replace("_", "\_"), author, 'manual'), + title.replace("_", r"\_"), author, 'manual'), ] latex_use_xindy = False diff --git a/templates/systemd-network.j2 b/templates/systemd-network.j2 index 1dd5290..8305dc2 100644 --- a/templates/systemd-network.j2 +++ b/templates/systemd-network.j2 @@ -58,3 +58,8 @@ VXLAN={{ item.1.vxlan }} {% if item.1.ipforward is defined %} IPForward={{ (item.1.ipforward | bool) | ternary('yes', 'no') }} {% endif %} + +[Link] +{% if item.1.mtu is defined %} +MTUBytes={{ item.1.mtu }} +{% endif %} diff --git a/tests/test.yml b/tests/test.yml index 172ef2b..6fa68cc 100644 --- a/tests/test.yml +++ b/tests/test.yml @@ -101,31 +101,31 @@ - name: Interface check assert: that: - - ansible_dummy0['active'] == true + - ansible_dummy0['active'] - ansible_dummy0['type'] == 'ether' - ansible_dummy0['mtu'] == 9000 - - ansible_dummy1['active'] == true + - ansible_dummy1['active'] - ansible_dummy1['type'] == 'ether' - ansible_dummy1['mtu'] == 9000 - - ansible_dummy2['active'] == true + - ansible_dummy2['active'] - ansible_dummy2['type'] == 'ether' - name: Bond check assert: that: - - ansible_bond0['active'] == true + - ansible_bond0['active'] - ansible_bond0['type'] == 'bonding' - ansible_bond0['mtu'] == 9000 - name: Bridge check assert: that: - - ansible_br_dummy['active'] == true + - ansible_br_dummy['active'] - ansible_br_dummy['type'] == 'bridge' - ansible_br_dummy['ipv4']['address'] == '10.0.0.100' - ansible_br_dummy['ipv4']['netmask'] == '255.255.255.0' - name: Bridge check assert: that: - - ansible_br_test['active'] == true + - ansible_br_test['active'] - ansible_br_test['type'] == 'bridge' - ansible_br_test['ipv4']['address'] == '10.1.0.1' - ansible_br_test['ipv4']['netmask'] == '255.255.255.0' @@ -159,12 +159,12 @@ assert: that: - ansible_br_test is defined - - ansible_dummy2['active'] == true + - ansible_dummy2['active'] - ansible_dummy2['type'] == 'ether' - name: Bridge check assert: that: - - ansible_br_test['active'] == true + - ansible_br_test['active'] - ansible_br_test['type'] == 'bridge' - ansible_br_test['ipv4']['address'] == '10.1.0.1' - ansible_br_test['ipv4']['netmask'] == '255.255.255.0'