Skip to content

Commit

Permalink
Closes-bug: #1606170 - Should not force the user to specify a default…
Browse files Browse the repository at this point in the history
… forwarding

class

Change-Id: I22162de944952b3184fb1eee5811195e6e1e9e46
(cherry picked from commit 1bf11e2)
  • Loading branch information
sbavanasi committed Jul 26, 2016
1 parent 143acd2 commit d06cfe2
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions webroot/config/networking/qos/common/ui/js/models/qosModel.js
Expand Up @@ -25,7 +25,7 @@ define([
"mpls_exp_entries": {
"qos_id_forwarding_class_pair": []
},
"default_forwarding_class_id": null
"default_forwarding_class_id": 0
},

validations: {
Expand All @@ -35,9 +35,11 @@ define([
msg: "QoS Config Name is required"
},

'default_forwarding_class_id': {
required: true,
msg: "Default Forwarding Class ID is required"
'default_forwarding_class_id': function(value, attr, finalObj) {
if(isNaN(value)){
return "Default Forwarding Class ID " +
"should be a number";
}
}
}
},
Expand Down

0 comments on commit d06cfe2

Please sign in to comment.