YaST2 Developers Documentation: Unknown YCP Module

Unknown YCP Module

This module has an unstable interface.

Imports

  • Linuxrc
  • Package
  • ProductFeatures
  • SuSEFirewall
  • SuSEFirewallServices

Structures

Global Functions

Local Functions

Info:

File: modules/SuSEFirewallProposal.ycp Package: SuSEFirewall configuration Summary: Functional interface for SuSEFirewall installation proposal Authors: Lukas Ocilka

$Id$

local AddWarning (string warning) -> void

Local function adds another warning string into warnings for user

Parameters:
warning
local ClearWarnings () -> void

Local function clears all warnings for user from memory

local GetWarnings () -> list <string>

Function returns list of warnings for user

Return value:
of warnings
local SetKnownInterfaces (list <string> interfaces) -> void

Local function sets currently known interfaces.

Parameters:
interfaces
local GetKnownInterfaces () -> list <string>

Local function returns list [string] of known interfaces. They must have been set using SetKnownInterfaces(list [string] interfaces) function.

Return value:
of known interfaces
local IsDialUpInterface (string interface) -> boolean

Function returns if interface is a dial-up type.

Parameters:
interface
Return value:
if is dial-up interface
local SetInterfacesToZone (list <string> interfaces, string zone) -> void

Local function adds list of interfaces into zone.

Parameters:
interfaces
zone
local UpdateProposal () -> void

Local function for updating user-changed proposal.

local ServiceEnabled (string service, list <string> zones) -> boolean

Returns whether service is enabled in zones.

Parameters:
service
zones
Return value:
if enabled
local EnableFallbackPorts (list <string> fallback_ports, list <string> zones) -> void

Enables ports in zones.

Parameters:
fallback_ports
zones
local OpenServiceInInterfaces (string service, list <string> fallback_ports, list <string> interfaces) -> void

Function opens service for network interfaces given as the third parameter. Fallback ports are used if the given service is uknown.

Parameters:
service
fallback_ports
interfaces
See
OpenServiceOnNonDialUpInterfaces for more info.
local IsServiceOrPortsOpen (string service, list <string> fallback_ports) -> boolean

Checks whether the given service or (TCP) ports are open at least in one FW zone.

Parameters:
service
fallback_ports
global OpenServiceOnNonDialUpInterfaces (string service, list <string> fallback_ports) -> void

Function opens up the service on all non-dial-up network interfaces. If there are no network interfaces known and the 'any' feature is supported, function opens the service for the zone supporting that feature. If there are only dial-up interfaces, function opens the service for them.

Parameters:
service
fallback_ports
local IsXenInstalled () -> boolean

Local function returns whether the Xen kernel is installed

Return value:
whether xen-capable kernel is installed.
local ProposeFunctions () -> void

Local function for proposing firewall configuration.

global SetChangedByUser (boolean changed) -> void

Function sets that proposal was changed by user

Parameters:
changed
global GetChangedByUser () -> boolean

Local function returns if proposal was changed by user

Return value:
if proposal was changed by user
global SetProposalInitialized (boolean initialized) -> void

Function sets that proposal was initialized

Parameters:
initialized
global GetProposalInitialized () -> boolean

Local function returns if proposal was initialized already

Return value:
if proposal was initialized
global Reset () -> void

Function fills up default configuration into internal values

global Propose () -> void

Function proposes the SuSEfirewall2 configuration

global ProposalSummary () -> map<string, string>

Function returns the proposal summary

Structure map $[

	"output" : "HTML Proposal Summary",
	"warning" : "HTML Warning Summary",
 ]
Return value:
proposal