Skip to content

Commit 47b5e08

Browse files
Merge pull request #445 from globocom/FLSTD-2165
better condition
2 parents 10a20e8 + 7534711 commit 47b5e08

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

networkapi/api_channel/facade.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ def create(self, data):
6161
envs_vlans = data.get('envs_vlans')
6262

6363
### Verify if channel number is greater than 0 and smaller or equal to 4096
64-
if 0 > int(nome) > 4096:
64+
if int(nome) > 4096 or int(nome) <=1 :
6565
log.error("Channel %s must be between 0 and 4097." % nome)
6666
raise InterfaceError(
6767
"Channel %s must be between 0 and 4097." % nome

0 commit comments

Comments
 (0)