From c5a8b2c72841ad0b58fb36870624737634778056 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sat, 13 Oct 2018 03:10:03 +0200 Subject: HTMLize instructions and use jinja2 to render them Only fixed tasks for the kpov_2018 class for now. --- kpov_judge/tasks/nat_vlc/task.py | 46 ++++++++++++++++++++-------------------- 1 file changed, 23 insertions(+), 23 deletions(-) (limited to 'kpov_judge/tasks/nat_vlc') diff --git a/kpov_judge/tasks/nat_vlc/task.py b/kpov_judge/tasks/nat_vlc/task.py index ffcb6c1..5224495 100644 --- a/kpov_judge/tasks/nat_vlc/task.py +++ b/kpov_judge/tasks/nat_vlc/task.py @@ -7,29 +7,29 @@ #TODO: finish this instructions = { - 'si':""" -Postavi dva navidezna računalnika - SimpleArbiter z diskom simpleArbiter -ter NATServer. NATServer naj ima dva omrežna vmesnika - z enim naj bo povezan -na lokalno omrežje, na katerem naj bo tudi simpleArbiter, z drugim pa na -Internet. Na NATServer skonfiguriraj omrežne vmesnike tako, da bo imel dostop -do Interneta in da bo imel na lokalnem omrežju {IP_NAT}. Na NATServer -ustvarite še uporabnika {IP_NAT_user}. - -Poskrbi, da bo SimpleArbiter prek DHCP dobil naslov {IP_simple}. -Poskrbi, da bo NATServer deloval kot prehod za SimpleArbiter in izvajal NAT. -""", - 'en':""" -Set up two virtual machines - SimpleArbiter (using the disc simpleArbiter) and -NATServer. NATServer should have two network adapters. Connect the first -adapter to SimpleArbiter and the second adapter to the Internet. Configure the -network in NATServer so that one interface is connected to the Internet while -the other is connected to SimpleArbiter and has the address {IP_NAT}. Create -a user called {IP_NAT_user} on NATServer. - -Configure a DHCP server on NATServer so that SimpleArbiter gets the IP -{IP_simple}. Also, set up NAT on NATServer and set it as the gateway for -SimpleArbiter. -""" + 'si': '''\ +

+Postavi dva navidezna računalnika: SimpleArbiter in NATServer. NATServer naj ima dva omrežna vmesnika - z enim naj bo povezan na lokalno omrežje, na katerem naj bo tudi simpleArbiter, z drugim pa na Internet. + +

+Na NATServer skonfiguriraj omrežne vmesnike tako, da bo imel dostop do Interneta in da bo imel na lokalnem omrežju {{IP_NAT}}. Na NATServer ustvarite še uporabnika {{IP_NAT_user}}. + +

+Poskrbi, da bo SimpleArbiter prek DHCP dobil naslov {{IP_simple}}. Poskrbi, da bo NATServer deloval kot prehod za SimpleArbiter in izvajal NAT. +''', + 'en': '''\ +

+Set up two virtual machines: SimpleArbiter and +NATServer. NATServer should have two network +adapters. Connect the first adapter to SimpleArbiter and the +second adapter to the Internet. + +

+Configure the network in NATServer so that one interface is connected to the Internet while the other is connected to SimpleArbiter and has the address {{IP_NAT}}. Create a user called {{IP_NAT_user}} on NATServer. + +

+Configure a DHCP server on NATServer so that SimpleArbiter gets the IP {{IP_simple}}. Also, set up NAT on NATServer and set it as the gateway for SimpleArbiter. +''', } computers = { -- cgit v1.2.1