mirror of
https://github.com/TakeusV1/flask_ipam.git
synced 2026-10-13 17:15:33 +02:00
V1.0
This commit is contained in:
1 parent
602bb7d706
commit
9f9f90422a
7 files changed
+74
-25
No files matched your search
+2
-2
@@ -8,11 +8,11 @@ class LoginForm(FlaskForm):
|
||||
|
||||
class NewPrefixForm(FlaskForm):
|
||||
subnet = StringField(validators=[DataRequired(),IPAddress(ipv4=True),Length(max=128)])
|
||||
prefix = IntegerField(validators=[DataRequired(),NumberRange(min=0,max=32)])
|
||||
prefix = IntegerField(validators=[DataRequired(),NumberRange(min=20,max=32)])
|
||||
description = StringField(validators=[Length(max=128)])
|
||||
|
||||
class NewAllocationForm(FlaskForm):
|
||||
ipv4 = StringField(validators=[DataRequired(),IPAddress(ipv4=True),Length(max=128)])
|
||||
host_name = StringField(validators=[DataRequired(),Length(max=128)])
|
||||
host_name = StringField(validators=[Length(max=128)])
|
||||
host_desc = StringField(validators=[Length(max=128)])
|
||||
#host_type = SelectField(choices=[(0,'None'),(1,'Computer'),(2,'Server'),(3,'Virtual Machine'),(4,'Network Device'),(5,'Other')],validators=[DataRequired()])
|
||||
Reference in new issue
Block a user