Skip to content
Snippets Groups Projects
Commit a1e32d0a authored by Pablo Armingol's avatar Pablo Armingol
Browse files

code cleanup

parent 14bb7163
No related branches found
No related tags found
2 merge requests!235Release TeraFlowSDN 3.0,!130WebUI Service creation
......@@ -90,7 +90,7 @@ class AddServiceForm_ACL_L2(FlaskForm):
#PARAMETERS FOR Associating ACL to IF
interface = StringField('Interface Name', validators=[CustomInputRequired("The name of the Interface is a mandatory parameter")])
subinterface = StringField('Subinterface Index', validators=[Optional()])
traffic_flow = SelectField('ACL Traffic Flow Direction', choices=[('', 'Select a direction (Mandatory)'), ('Ingress', 'Ingress'), ('Egress','Egress')], validators=[CustomInputRequired("The direction of the traffic flow is a mandatory parameter")]) #MANDATORY PARAMETER
traffic_flow = SelectField('ACL Traffic Flow Direction', choices=[('', 'Select a direction (Mandatory)'), ('Ingress', 'Ingress'), ('Egress','Egress')], validators=[CustomInputRequired("The direction of the traffic flow is a mandatory parameter")])
#SPECIFIC PARAMETERS - Creating ACL Entry [ACL_L2]
source_mac = StringField('Source MAC Address', validators=[Optional(), validate_mac_address])
......@@ -259,4 +259,3 @@ class AddServiceForm_L3VPN(FlaskForm):
Device_2_IF_address_ip = StringField('Device_2 IP Address', validators=[CustomInputRequired(), validate_ipv4_address])
Device_2_IF_address_prefix = IntegerField('Device_2 IP Prefix length', validators=[CustomInputRequired(), validate_uint32])
Device_2_IF_description = StringField ('Device_2 SubIF Description', validators=[Optional()])
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment