We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 10a20e8 + 7534711 commit 47b5e08Copy full SHA for 47b5e08
networkapi/api_channel/facade.py
@@ -61,7 +61,7 @@ def create(self, data):
61
envs_vlans = data.get('envs_vlans')
62
63
### Verify if channel number is greater than 0 and smaller or equal to 4096
64
- if 0 > int(nome) > 4096:
+ if int(nome) > 4096 or int(nome) <=1 :
65
log.error("Channel %s must be between 0 and 4097." % nome)
66
raise InterfaceError(
67
"Channel %s must be between 0 and 4097." % nome
0 commit comments