Commit a35d359f authored by Łukasz Nowak's avatar Łukasz Nowak

- store netmask send during computer update

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@41211 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 5156639e
...@@ -58,6 +58,7 @@ treated_partition_list = []\n ...@@ -58,6 +58,7 @@ treated_partition_list = []\n
\n \n
context.edit(\n context.edit(\n
default_network_address_ip_address = computer_dict[\'address\'],\n default_network_address_ip_address = computer_dict[\'address\'],\n
default_network_address_netmask = computer_dict[\'netmask\'],\n
quantity = len(computer_dict[\'partition_list\']),\n quantity = len(computer_dict[\'partition_list\']),\n
)\n )\n
\n \n
...@@ -67,7 +68,9 @@ for partition in computer_partition_list:\n ...@@ -67,7 +68,9 @@ for partition in computer_partition_list:\n
\n \n
if partition_dict[\'reference\'] == partition.getReference():\n if partition_dict[\'reference\'] == partition.getReference():\n
partition.edit(\n partition.edit(\n
default_network_address_ip_address = partition_dict[\'addr\'],)\n default_network_address_ip_address = partition_dict[\'addr\'],\n
default_network_address_netmask = partition_dict[\'netmask\'],\n
)\n
\n \n
partition.getDefaultNetworkAddressValue().edit(network_interface = partition_dict[\'tap\'][\'name\'])\n partition.getDefaultNetworkAddressValue().edit(network_interface = partition_dict[\'tap\'][\'name\'])\n
\n \n
......
293 294
\ No newline at end of file \ No newline at end of file
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment