Commit c8025a95 by Bence Dányi

firewall_gui: fix typo

parent 3f8afc39
...@@ -685,11 +685,11 @@ def save_vlan(request): ...@@ -685,11 +685,11 @@ def save_vlan(request):
vlan.net6 = data['net6'].split('/')[0] vlan.net6 = data['net6'].split('/')[0]
vlan.prefix6 = data['ipv6'].split('/')[1] vlan.prefix6 = data['ipv6'].split('/')[1]
if data['ipv4'].split('/')[1] != data['net4'].split('/')[1]: if data['ipv4'].split('/')[1] != data['net4'].split('/')[1]:
errors['ipv4'] = 'Netmask legth should be equal!' errors['ipv4'] = 'Netmask length should be equal!'
errors['net4'] = 'Netmask legth should be equal!' errors['net4'] = 'Netmask length should be equal!'
if data['ipv6'].split('/')[1] != data['net6'].split('/')[1]: if data['ipv6'].split('/')[1] != data['net6'].split('/')[1]:
errors['ipv6'] = 'Netmask legth should be equal!' errors['ipv6'] = 'Netmask length should be equal!'
errors['net6'] = 'Netmask legth should be equal!' errors['net6'] = 'Netmask length should be equal!'
vlan.snat_ip = data['nat'] vlan.snat_ip = data['nat']
vlan.description = data['description'] vlan.description = data['description']
vlan.comment = data['comment'] vlan.comment = data['comment']
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment