summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorliyingjun <yingjun.li@kylin-cloud.com>2015-02-19 10:08:40 +0800
committerliyingjun <yingjun.li@kylin-cloud.com>2015-02-19 10:11:25 +0800
commite67d91476219924af524f86b54af5fa3f30b2a24 (patch)
tree1ec6c90592aefad0e2c368d1f40e75e56af1db9f
parentb7956c9c6569a7ffd4878cd5cb8d3e87e4decf78 (diff)
downloadhorizon-e67d91476219924af524f86b54af5fa3f30b2a24.tar.gz
Net name field is not required when creating port
Add required=False to network name field to create port form when creating port. Change-Id: Ie4575345e6cf948c931feb4619c88fcc5358995d Closes-bug: #1423335
-rw-r--r--openstack_dashboard/dashboards/admin/networks/ports/forms.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/openstack_dashboard/dashboards/admin/networks/ports/forms.py b/openstack_dashboard/dashboards/admin/networks/ports/forms.py
index 31950c1c6..b85b906c2 100644
--- a/openstack_dashboard/dashboards/admin/networks/ports/forms.py
+++ b/openstack_dashboard/dashboards/admin/networks/ports/forms.py
@@ -32,7 +32,8 @@ LOG = logging.getLogger(__name__)
class CreatePort(forms.SelfHandlingForm):
network_name = forms.CharField(label=_("Network Name"),
widget=forms.TextInput(
- attrs={'readonly': 'readonly'}))
+ attrs={'readonly': 'readonly'}),
+ required=False)
network_id = forms.CharField(label=_("Network ID"),
widget=forms.TextInput(
attrs={'readonly': 'readonly'}))