NAME

YaPI::DHCPD - DHCP server configuration API


PREFACE

This package is the public YaST2 API to configure the ISC DHCP server


SYNOPSIS

  use YaPI::DHCPD

$status = StopDhcpService($config)

$status = StartDhcpService($config)

$status = GetDhcpServiceStatus($config)

$ret = AddDeclaration($config,$type,$id,$parent_type,$parent_id)

$ret = DeleteDeclaration($config,$type,$id)

$parent = GetDeclarationParent($config,$type,$id)

$ret = SetDeclarationParent($config,$type,$id,$new_parent_type,$new_parent_id)

$children = GetChildrenOfDeclaration($config,$type,$id)

$options = GetDeclarationOptions($config,$type,$id)

$ret = SetDeclarationOptions($config,$type,$id,$options)

$directives = GetDeclarationDirectives($config,$type,$id)

$ret = SetDeclarationDirectives($config,$type,$id,$directives)

$exists = ExistsDeclaration($config,$type,$id)

The $config parameter is always a refernece to a hash, that contains various configuration options. Currently following keys are supported:

"use_ldap" says if settings should be written/read to LDAP or not. Possible values are 1 (use LDAP if configured properly) or 0 (don't use LDAP). If not specified, mode is detected automatically.

"ldap_passwd" holds the LDAP password needed for authentication against the LDAP server.


DESCRIPTION