summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/snmp_agent_uptime
diff options
context:
space:
mode:
Diffstat (limited to 'kpov_judge/tasks/snmp_agent_uptime')
-rw-r--r--kpov_judge/tasks/snmp_agent_uptime/task.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/kpov_judge/tasks/snmp_agent_uptime/task.py b/kpov_judge/tasks/snmp_agent_uptime/task.py
index c636549..cc23549 100644
--- a/kpov_judge/tasks/snmp_agent_uptime/task.py
+++ b/kpov_judge/tasks/snmp_agent_uptime/task.py
@@ -1,7 +1,7 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
-# kpov_random_helpers should be imported by add_assignment.py
+# kpov_util should be imported by add_assignment.py
# TODO: finish this.
instructions = {
'si':"""
@@ -154,13 +154,13 @@ def gen_params(user_id, params_meta):
import random
params = dict()
r = random.Random(user_id)
- # You can also create an OID creation function in kpov_random_helpers.
+ # You can also create an OID creation function in kpov_util.
# this should probably return params_meta
#<== Aleksander Fujs 6310020 ==>
- params['SNMP_VALUE'] = kpov_random_helpers.alnum_gen(r, 64)
+ params['SNMP_VALUE'] = kpov_util.alnum_gen(r, 64)
params['SNMP_UPTIME_OID'] = 'NET-SNMP-EXTEND-MIB::nsExtendOutLine."{}".1'.format(
- kpov_random_helpers.hostname_gen(r))
+ kpov_util.hostname_gen(r))
params['SNMP_CLIENT_OID'] = '1.3.6.1.4.1.8072.2.9999.9999.{}'.format(
r.randint(0, 255))
#<== Aleksander Fujs 6310020 ==>