Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
YaST module openwsman-yast
Pull request Compare This branch is 24 commits behind master.

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
src
MAINTAINER
Makefile.am
README
RPMNAME
bootstrap
configure.in
openwsman-yast.changes
openwsman-yast.spec.in

README

This plugin enables access to YaST via an openwsman plugin.

Its namespace is
  http://schema.opensuse.org/YaST/wsman-schema/10-3

The inital release only implements the 'Custom' endpoint,
serving the 'invoke' ws-man command.

A single resource class 'YCP' is implemented with
one method
  eval (ycp : string) -> string

It evaluates a piece of ycp code in the client environment.


The ycp code follows the same rules as other yast programs:
 - must be enclosed in {  }
 - required modules must be 'import'ed
 - the result of the eval method is the value returned by
   the first 'return' statement encountered.

Examples of valid ycp code:

1. Simple computation

  { integer i = 42; float j = 10.3; return i+j; }


2. Read /proc/modules

  { return SCR::Read( .proc.modules ); }


3. Call a method from the 'String' module (returns "4.00 KB")

  { import "String"; return String::FormatSizeWithPrecision( 4096, 2, false ); }


4. Get partitioning information

  { import "Storage"; return Storage::GetDiskPartition("/dev/sda1"); }
Something went wrong with that request. Please try again.