Merge "Add PXEBoot address range options to config GUI util"

This commit is contained in:
Zuul 2018-12-17 12:50:29 +00:00 committed by Gerrit Code Review
commit b785a9d973
1 changed files with 19 additions and 1 deletions

View File

@ -863,7 +863,7 @@ class PXEBootPage(ConfigPage):
text="Configure a separate PXEBoot network",
type=TYPES.checkbox,
transient=True,
shows=["PXEBOOT_CIDR"]
shows=["PXEBOOT_CIDR", "use_entire_subnet"]
)
self.fields['PXEBOOT_CIDR'] = Field(
text="PXEBoot subnet",
@ -871,6 +871,24 @@ class PXEBootPage(ConfigPage):
initial="192.168.202.0/24"
)
# Start/end ranges
self.fields['use_entire_subnet'] = Field(
text="Restrict PXEBoot subnet address range",
type=TYPES.checkbox,
shows=["IP_START_ADDRESS", "IP_END_ADDRESS"],
transient=True
)
self.fields['IP_START_ADDRESS'] = Field(
text="PXEBoot network start address",
type=TYPES.string,
initial="192.168.202.2",
)
self.fields['IP_END_ADDRESS'] = Field(
text="PXEBoot network end address",
type=TYPES.string,
initial="192.168.202.254",
)
def get_config(self):
super(PXEBootPage, self).get_config()