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:
parent
5f79056bf2
commit
46ae58243c
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user