raiseforms.ValidationError('Destination address/network should belong to your administrative address space. Check My Profile to review your networks')
if(sourceportsandports):
raiseforms.ValidationError('Cannot create rule for source ports and ports at the same time. Select either ports or source ports')
if(destinationportsandports):
...
...
@@ -54,4 +64,45 @@ class RouteForm(forms.ModelForm):
raiseforms.ValidationError('Once destination port is matched, destination has to be filled as well. Either deselect destination port or fill destination address')