horizon/openstack_dashboard
Suraj Deshmukh 0b4b2976af ICMP type & code validation while adding Security Group rules
While adding new 'Security Group Rule' viz. 'Custom ICMP rule' when
wrong ICMP 'type' or 'code' was given the errors it would show were
'Not a valid port number'; which is misleading. The errors should
rather be 'Not a valid ICMP type' or 'Not a valid ICMP code'.

Also for validating ICMP 'type' and 'code' there wasn't any dedicated
functionality in 'oslo.utils/netutils' so the code for validating 'TCP
ports' was used. TCP ports are in range 0 to 65535 while ICMP 'type'
and 'code' are in range 0 to 255, so using 'TCP port validation' code
is incorrect.

When -1 is used in 'ICMP code' or 'ICMP type' that means any number
0 to 255 is valid.

Here newer dedicated functionality of 'oslo.utils/netutils' is used
for validating ICMP 'type' and ICMP 'code'.

Change-Id: I8e227a0021d418294fa7b7756d58e39f2100850a
Closes-Bug: #1511748
(cherry picked from commit edfde8b3f5)
2016-06-20 15:43:57 +00:00
..
api Fix new Swift UI to work with Ceph backend 2016-04-05 12:43:40 +03:00
conf Update nova policy file 2015-11-17 10:31:58 -06:00
contrib Remove unnecessary translate attribute on Theme preview page 2016-03-10 09:38:57 +09:00
dashboards ICMP type & code validation while adding Security Group rules 2016-06-20 15:43:57 +00:00
django_pyscss_fix Workaround for 'File exists' test failure 2014-09-30 06:43:22 -05:00
enabled Make ngcontainers the default Swift UI 2016-03-17 11:40:49 -07:00
local Retrieve domain scoped token 2016-03-08 15:17:38 -08:00
locale Imported Translations from Zanata 2016-06-19 07:26:39 +00:00
management Update WSGI app creation to be compatible with Django 1.7 or greater 2015-09-21 15:36:19 +02:00
static UX: Misaligned OpenStack Logo 2016-05-31 16:13:25 +00:00
templates Merge "Change projects redirects to overview page" 2016-03-16 02:14:47 +00:00
templatetags Make region list case-insensitive sorted 2016-03-16 16:52:18 +08:00
test Escape angularjs templating in unsafe HTML 2016-06-15 11:02:55 -04:00
themes Merge "Hamburger Menu icon - fix the alignment of the animated arrow" 2016-03-17 18:43:28 +00:00
usage Look for volumev2 endpoints instead of volume 2016-02-23 11:47:25 +01:00
utils [Django 1.9] Stop using django.utils.importlib 2016-01-26 11:19:23 +00:00
wsgi Update WSGI app creation to be compatible with Django 1.7 2014-10-16 13:57:45 +01:00
.eslintrc Add selective ESLint rule activation for Horizon Legacy JS 2015-07-08 17:06:15 -07:00
__init__.py
context_processors.py Support javascript translation for plugin 2016-01-11 13:46:05 -08:00
exceptions.py Excise Trove from Horizon 2015-12-22 02:01:07 -07:00
hooks.py Remove extraneous vim configuration comments 2014-05-06 15:30:10 +08:00
karma.conf.js Use Chrome for JS unit tests 2016-04-19 15:35:25 +00:00
policy.py Retrieve domain scoped token 2016-03-08 15:17:38 -08:00
settings.py Escape angularjs templating in unsafe HTML 2016-06-15 11:02:55 -04:00
static_settings.py Adding Magic Search codebase to Horizon 2016-01-29 14:05:52 +00:00
theme_settings.py Dynamic Themes 2016-02-25 09:49:43 -08:00
urls.py Allow specifying authentication URLs from settings 2015-03-18 11:44:30 +11:00
views.py Retrieve domain scoped token 2016-03-08 15:17:38 -08:00