summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/set_ip_dhcp_hostname
diff options
context:
space:
mode:
authorgasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2014-11-24 15:48:08 +0000
committergasperfele@fri1.uni-lj.si <gasperfele@fri1.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2014-11-24 15:48:08 +0000
commit71cecca5bfb2e05fe7f195f7c0b23c8242fcdd3e (patch)
treec489f4dab364552a79e0cec11bbec3859d09bc16 /kpov_judge/tasks/set_ip_dhcp_hostname
parent794efa5dcccf8e7b6e33e1f12f9a25fbda4b4740 (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/set_ip_dhcp_hostname')
-rw-r--r--kpov_judge/tasks/set_ip_dhcp_hostname/task.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/kpov_judge/tasks/set_ip_dhcp_hostname/task.py b/kpov_judge/tasks/set_ip_dhcp_hostname/task.py
index db7ca35..16c689e 100644
--- a/kpov_judge/tasks/set_ip_dhcp_hostname/task.py
+++ b/kpov_judge/tasks/set_ip_dhcp_hostname/task.py
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
# TODO: finish thi
-# kpovRandomHelpers should be imported by add_assignment.py
+# kpov_random_helpers should be imported by add_assignment.py
instructions = {
'si':u"""
@@ -84,9 +84,9 @@ def task(IP_DHCP, Hostname_DHCP, IP_static, MAC_static, IP_dhcp_static):
def gen_params(user_id, params_meta):
r = random.Random(user_id)
# IP_NM, DNS_NM, IP_static, DNS_static)
- net = kpovRandomHelpers.IPv4_subnet_gen(r, '172.23.128.0/18', 24)
- params['IP_DHCP'], params['IP_static'], params['IP_dhcp_static'] = kpovRandomHelpers.IPv4_addr_gen(r, net, 3)
- params['Hostname_DHCP'] = kpovRandomHelpers.hostname_gen(r)
+ net = kpov_random_helpers.IPv4_subnet_gen(r, '172.23.128.0/18', 24)
+ params['IP_DHCP'], params['IP_static'], params['IP_dhcp_static'] = kpov_random_helpers.IPv4_addr_gen(r, net, 3)
+ params['Hostname_DHCP'] = kpov_random_helpers.hostname_gen(r)
return params
def task_check(results, params):