diff options
Diffstat (limited to 'kpov_judge/tasks/nat_vlc')
-rw-r--r-- | kpov_judge/tasks/nat_vlc/task.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/kpov_judge/tasks/nat_vlc/task.py b/kpov_judge/tasks/nat_vlc/task.py index c393267..556535c 100644 --- a/kpov_judge/tasks/nat_vlc/task.py +++ b/kpov_judge/tasks/nat_vlc/task.py @@ -119,6 +119,7 @@ def gen_params(user_id, params_meta): def task_check(results, params): import re score = 0 + hints = [] if re.search(r'0% packet loss',results['IP_simple ping to NAT']): score += 2 if results['IP_NAT ip forward']=='1': @@ -130,7 +131,7 @@ def task_check(results, params): gateway='0.0.0.0\t'+params['IP_NAT'] if re.search(gateway,results['IP_simple routing table']): score += 2 - return score + return score, hints def prepare_disks(templates, params): # d = templates['simpleArbiterDhcp'] |