Add PXEBoot address range options to config GUI util

Story: 2004584
Task:  28391

Change-Id: I9c84a776db6e12a3fab9149d8dc06789d0419bc8
Signed-off-by: Bin Qian <bin.qian@windriver.com>
This commit is contained in:
Bin Qian 2018-12-14 14:51:36 -05:00
parent 5f79056bf2
commit 46ae58243c
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()