Project

General

Profile

Actions

Bug #14808

closed

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

Added by Wojciech Kowalski over 8 years ago. Updated about 8 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 #1

Updated by Dominic Cleal over 8 years ago

  • Project changed from Foreman to Smart Proxy
  • Category changed from DHCP to DHCP
  • Status changed from New to Assigned
Actions #2

Updated by David PORTE about 8 years ago

you can try this patch
this should do the trick...be gentle, this is my first in ruby

Actions #3

Updated by Anonymous about 8 years ago

Could you create a pull request with your chnges for git repository at https://github.com/theforeman/smart-proxy please?

Actions #4

Updated by Anonymous about 8 years ago

  • Status changed from Assigned to Duplicate

This appears to be a duplicate of http://projects.theforeman.org/issues/16079 which has now been resolved.

Actions #5

Updated by Anonymous about 8 years ago

  • Related to Bug #16079: ISC DHCP subnets fail to parse with host or class stanzas inside added
Actions

Also available in: Atom PDF