Skip to content

Commit

Permalink
[OpenWrt] Increased network maxLength
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Mar 22, 2016
1 parent c70ab76 commit 778615a
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion netjsonconfig/backends/openwrt/schema.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
"properties": {
"network": {
"type": "string",
"maxLength": 9,
"maxLength": 15,
"pattern": "^[a-zA-z0-9_\\.\\-]*$",
"propertyOrder": 7
},
Expand Down
2 changes: 1 addition & 1 deletion tests/openwrt/test_network.py
Original file line number Diff line number Diff line change
Expand Up @@ -715,7 +715,7 @@ def test_network_maxlength(self):
"interfaces": [
{
"name": "eth0",
"network": "lan0123456789",
"network": "lan0123456789012345",
"type": "ethernet"
}
]
Expand Down
2 changes: 1 addition & 1 deletion tests/openwrt/test_wireless.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 778615a

Please sign in to comment.