Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
[OpenWrt] Increased network maxLength
- Loading branch information
|
@@ -50,7 +50,7 @@ |
|
|
"properties": { |
|
|
"network": { |
|
|
"type": "string", |
|
|
"maxLength": 9, |
|
|
"maxLength": 15, |
|
|
"pattern": "^[a-zA-z0-9_\\.\\-]*$", |
|
|
"propertyOrder": 7 |
|
|
}, |
|
|
|
@@ -715,7 +715,7 @@ def test_network_maxlength(self): |
|
|
"interfaces": [ |
|
|
{ |
|
|
"name": "eth0", |
|
|
"network": "lan0123456789", |
|
|
"network": "lan0123456789012345", |
|
|
"type": "ethernet" |
|
|
} |
|
|
] |
|
|
|
@@ -708,7 +708,7 @@ def test_wireless_network_attr_validation(self): |
|
|
with self.assertRaises(ValidationError): |
|
|
o.validate() |
|
|
# maxLength does not validate |
|
|
o.config['interfaces'][0]['wireless']['network'] = ['lan0123456789'] |
|
|
o.config['interfaces'][0]['wireless']['network'] = ['lan0123456789012345'] |
|
|
with self.assertRaises(ValidationError): |
|
|
o.validate() |
|
|
# ensure fix works |
|
|