Project

General

Profile

Actions

Bug #14808

closed

Foreman-Proxy DHCP class doesn't properly read subnets containing if statements

Added by Wojciech Kowalski about 8 years ago. Updated over 7 years ago.

Status:
Duplicate
Priority:
Normal
Category:
DHCP
Target version:
-
Difficulty:
medium
Triaged:
Fixed in Releases:
Found in Releases:

Description

if dhcpd.conf contain if statement for pxe then subnets are not detected
eg.:

option arch code 93 = unsigned integer 16;

if option arch = 00:06 {
    filename "pxelinux/bootia32.efi";
} else if option arch = 00:07 {
    filename "efi64/bootx64.efi";
} else {
    filename "pxelinux.0";
}

SUBNET_BLOCK_REGEX in modules/dhcp_isc/dhcp_isc_main.rb doesn't properly deal with {}


Files

dhcp_isc_main.rb__regexp.patch dhcp_isc_main.rb__regexp.patch 2.59 KB managa block {} into subnet statement David PORTE, 10/06/2016 03:27 PM

Related issues 1 (0 open1 closed)

Related to Smart Proxy - Bug #16079: ISC DHCP subnets fail to parse with host or class stanzas insideClosedLukas Zapletal08/11/2016Actions
Actions

Also available in: Atom PDF