YaST2 Developers Documentation: Network configuration

Network configuration

clients/lan_proposal.ycp
Lan configuration proposal
  • Michal Svec

This module has an unstable interface.

Imports

  • Arch
  • Lan
  • LanItems
  • LanUdevAuto
  • Map
  • Mode
  • NetworkInterfaces
  • Progress

Includes

  • network/lan/wizards.ycp
  • network/routines.ycp

Local Functions

local UpcaseCondSet (map ret, map m, string key) -> map

If there's key in m, upcase key and assign the value to ret

Parameters:
ret
m
key
Return value:
ret
local MergeDevices (map<string, any> in_devs1, map<string, any> in_devs2) -> map

Merges two devices map into one.

Maps are expected in NetworkInterfaces format. That is $[ type1: $[ dev_name_1: $[ ... ], ... ], ... ]

If a device definition is present in both maps, then the one from devices2 wins.

Parameters:
in_devs1 first map of devices in NetworkInterfaces format
in_devs2 second map of devices in NetworkInterfaces format
Return value:
merged device map in NetworkInterfaces format or empty map
local FromAY (map input) -> map

Convert data from autoyast to structure used by module.

Parameters:
input autoyast settings
Return value:
native network settings
local ToAY (map settings) -> map

Convert data from native network to autoyast for XML

Parameters:
settings
Return value:
autoyast network settings