Skip to content

Commit

Permalink
Merge "Hidden sub interface section and disabled vlanid for port edit"
Browse files Browse the repository at this point in the history
  • Loading branch information
Zuul authored and opencontrail-ci-admin committed Jan 23, 2017
2 parents bc6094a + 1afc888 commit 06fb794
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
9 changes: 3 additions & 6 deletions webroot/config/networking/port/ui/js/models/portModel.js
Original file line number Diff line number Diff line change
Expand Up @@ -469,12 +469,9 @@ define([
modelConfig["disable_sub_interface"] = true;
}
}
if(vlanTag == ""){
var vmiRefTo = getValueByJsonPath(modelConfig,
"virtual_machine_interface_refs",[]);
if (vmiRefTo.length > 0) {
modelConfig['isParent'] = true;
}
var portUUID = getValueByJsonPath(modelConfig, "uuid", null);
if(vlanTag == "" && portUUID != null) {
modelConfig['isParent'] = true;
}
modelConfig['deviceOwnerValue'] = deviceOwnerValue;

Expand Down
1 change: 1 addition & 0 deletions webroot/config/networking/port/ui/js/portViewConfigs.js
Original file line number Diff line number Diff line change
Expand Up @@ -557,6 +557,7 @@
viewConfig: {
visible: "is_sub_interface",
placeholder: 'Specify VLAN',
disabled: isDisable,
path: 'virtual_machine_interface_properties.sub_interface_vlan_tag',
dataBindValue: 'virtual_machine_interface_properties().sub_interface_vlan_tag',
class: "col-xs-6",
Expand Down

0 comments on commit 06fb794

Please sign in to comment.