diff options
author | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2014-11-24 15:48:08 +0000 |
---|---|---|
committer | gasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414> | 2014-11-24 15:48:08 +0000 |
commit | 71cecca5bfb2e05fe7f195f7c0b23c8242fcdd3e (patch) | |
tree | c489f4dab364552a79e0cec11bbec3859d09bc16 /kpov_judge/tasks/isc_dhcp_live_boot | |
parent | 794efa5dcccf8e7b6e33e1f12f9a25fbda4b4740 (diff) |
Fixed references to kpov_random_helpers
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@10 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks/isc_dhcp_live_boot')
-rw-r--r-- | kpov_judge/tasks/isc_dhcp_live_boot/task.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/kpov_judge/tasks/isc_dhcp_live_boot/task.py b/kpov_judge/tasks/isc_dhcp_live_boot/task.py index 0a6c33c..5bbdf4f 100644 --- a/kpov_judge/tasks/isc_dhcp_live_boot/task.py +++ b/kpov_judge/tasks/isc_dhcp_live_boot/task.py @@ -2,7 +2,7 @@ # -*- coding: utf-8 -*- # TODO: dokoncaj! -# kpovRandomHelpers should be imported by add_assignment.py +# kpov_random_helpers should be imported by add_assignment.py instructions = { 'si':u""" @@ -86,9 +86,9 @@ def task(IP_DHCP, IP_GW, MAC_BOOT, BOOT_FNAME): def gen_params(user_id, params_meta): params = dict() r = random.Random(user_id) - net = kpovRandomHelpers.IPv4_subnet_gen(r, '10.75.0.0/10', 24) - params['IP_DHCP'], params['IP_GW'] = kpovRandomHelpers.IPv4_addr_gen(r, net, 2) - params['BOOT_FNAME'] = kpovRandomHelpers.filename_gen(r) + net = kpov_random_helpers.IPv4_subnet_gen(r, '10.75.0.0/10', 24) + params['IP_DHCP'], params['IP_GW'] = kpov_random_helpers.IPv4_addr_gen(r, net, 2) + params['BOOT_FNAME'] = kpov_random_helpers.filename_gen(r) # IP_NM, DNS_NM, IP_static, DNS_static) return params |