Revision 40fe08b1
b/flowspec/forms.py | ||
---|---|---|
144 | 144 |
raise forms.ValidationError('Fill at least a Rule Match Condition') |
145 | 145 |
if not user.is_superuser and then[0].action not in settings.UI_USER_THEN_ACTIONS: |
146 | 146 |
raise forms.ValidationError('This action "%s" is not permitted' %(then[0].action)) |
147 |
existing_routes = Route.objects.exclude(status='EXPIRED').exclude(status='ERROR').exclude(status='ADMININACTIVE')
|
|
147 |
existing_routes = Route.objects.all()
|
|
148 | 148 |
existing_routes = existing_routes.filter(applier__userprofile__peer=peer) |
149 | 149 |
if source: |
150 | 150 |
source = IPNetwork(source).compressed |
Also available in: Unified diff