Make MTU configurable

Allow users to tune the MTU value in the configuration drive
network_info.json.

Change-Id: Id686eb940545463ceb796704dfdd6bd2726ea753
Closes-Bug: 1463195
This commit is contained in:
stephane 2015-06-23 16:05:34 -07:00
parent 9f9b6c17f7
commit 6e46828a39
3 changed files with 3 additions and 2 deletions

View File

@ -33,6 +33,7 @@ node_default_network_interface: eth0
ipv4_subnet_mask: 255.255.255.0 ipv4_subnet_mask: 255.255.255.0
ipv4_gateway: 192.168.1.1 ipv4_gateway: 192.168.1.1
ipv4_nameserver: 8.8.8.8 ipv4_nameserver: 8.8.8.8
network_mtu: 1500
dhcp_pool_start: 192.168.1.200 dhcp_pool_start: 192.168.1.200
dhcp_pool_end: 192.168.1.250 dhcp_pool_end: 192.168.1.250
# ipmi_bridging: Default undefined. Valid values: "no", "single", and "dual" # ipmi_bridging: Default undefined. Valid values: "no", "single", and "dual"

View File

@ -10,7 +10,7 @@ with the information that we have available to us in nics.
{% for nic in nics %} {% for nic in nics %}
{%- if loop.first %} "ethernet_mac_address": "{{ nic.mac }}",{% endif %} {%- if loop.first %} "ethernet_mac_address": "{{ nic.mac }}",{% endif %}
{% endfor %} {% endfor %}
"mtu":1500 "mtu":{{network_mtu}}
} }
], ],
"networks": [ "networks": [

View File

@ -4,7 +4,7 @@
"id": "{{node_default_network_interface}}", "id": "{{node_default_network_interface}}",
"type": "phy", "type": "phy",
"ethernet_mac_address": "{{item.split(',')[0]}}", "ethernet_mac_address": "{{item.split(',')[0]}}",
"mtu":1500 "mtu":{{network_mtu}}
} }
], ],
"networks": [ "networks": [