YaST2 Developers Documentation: Unknown YCP Module

Unknown YCP Module

This module has an unstable interface.

Imports

  • Directory
  • Package
  • String

Includes

  • network/hardware.ycp

Global Variables

Global Functions

Local Functions

Info:

File: modules/NetHwDetection.ycp Package: Network configuration Summary: Network detection Authors: Michal Svec

Detects network settings, using dhcp or sniffing network traffic

Detection process:

Initial stage:

Final stage:

Used software:

Usage:

Later at the module:

global result -> map

Detection result (in dhcpcd-interface.info format)

global running -> boolean

True, if detection is running

local LoadNetModules () -> boolean

Set up the first eth interface, if not already running WATCH OUT, this is the place where modules are loaded

Return value:
true if success
global Start () -> boolean

Start the detection

Return value:
true on success
global Stop () -> boolean

Stop the detection

Return value:
true on success
global DuplicateIP (string ip) -> boolean

Duplicate IP detection

Parameters:
ip tested IP address
Return value:
true if duplicate found
See
arping(8), ip(8)
global ResolveIP (string ip) -> string

Resolve IP to hostname

Parameters:
ip given IP address
Return value:
resolved host