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.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/kpov_judge/tasks/snmp_agent_uptime/task.py b/kpov_judge/tasks/snmp_agent_uptime/task.py
index 9d38083..c84a786 100644
--- a/kpov_judge/tasks/snmp_agent_uptime/task.py
+++ b/kpov_judge/tasks/snmp_agent_uptime/task.py
@@ -198,7 +198,7 @@ def task_check(results, params):
score += 4
return score, hints
-def prepare_disks(templates, params):
+def prepare_disks(templates, task_params, global_params):
# d = templates['simpleArbiterDhcp']
prog = """#!/usr/bin/python
import sys
@@ -212,6 +212,7 @@ elif action == '-n' and oid < ".{oid}":
print ".{oid}"
print "string"
print "{val}"
-""".format(oid = params['SNMP_CLIENT_OID'], val = params['SNMP_VALUE'])
+""".format(oid = task_params['SNMP_CLIENT_OID'], val = task_params['SNMP_VALUE'])
templates['student-SNMPServer'].write('/usr/local/bin/snmpext.py', prog)
templates['student-SNMPServer'].chmod(0766, '/usr/local/bin/snmpext.py')
+ write_default_config(templates['simpleArbiterDhcpGW'], global_params)