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 b4b7054 + 82ebf39 commit 10a20e8Copy full SHA for 10a20e8
networkapi/api_channel/facade.py
@@ -60,6 +60,13 @@ def create(self, data):
60
vlan_nativa = data.get('vlan')
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:
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
68
+ )
69
+
70
api_interface_facade.verificar_vlan_nativa(vlan_nativa)
71
72
# Checks if Port Channel name already exists on equipment
0 commit comments