Commit Graph

5 Commits

Author SHA1 Message Date
Hannu Nyman
d3e4d5549d treewide: adjust local CMakeLists.txt min version to cmake 4.x
cmake 4.x will require 'cmake_minimum_required' defined in cmake
projects to be at least 3.5. Adjust those local sources where that
variable is currently defined with value below 3.5.

Use 3.30 as the value, as 3.30 is currently used in 24.10, the oldest
still supported OpenWrt release branch.

Signed-off-by: Hannu Nyman <hannu.nyman@iki.fi>
2025-08-23 22:40:53 +03:00
Rafał Miłecki
650704c425 rpcd-mod-lxc: info: return NOT_FOUND if container doesn't exist
It allow distinction between not existing and stopped container. So far
querying for not existing container was resulting in:
> ubus call lxc info '{ "name": "foo" }'
{
        "name": "foo",
        "state": "STOPPED",
        "ips": [

        ]
}

Now it's an error and it matches lxc-info command line:

> ubus call lxc info '{ "name": "foo" }'
Command failed: Not found

> lxc-info --name foo
foo doesn't exist

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
2017-12-06 09:58:17 +01:00
Rafał Miłecki
f2a725ba2d rpcd-mod-lxc: add "info" ubus method (similar to the lxc-info)
This method allows getting basic info about a queried container. It's
based on the lxc-info command-line tool.

Example output:
> ubus call lxc info '{ "name": "foo" }'
{
        "name": "foo",
        "state": "RUNNING",
        "pid": 2946,
        "ips": [
                "192.168.0.124"
        ]
}

Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
Approved-by: Luka Perkov <luka@openwrt.org>
2017-11-07 23:34:59 +01:00
Luka Perkov
ceceff5b33 rpcd-mod-lxc: add lxc-create ubus bindings
Example call:

$ ubus call lxc create '{ "name": "bar", "template": "download", "args": [ "--no-validate", "--dist", "debian", "--release", "sid", "--arch", "i386" ] }'

Signed-off-by: Luka Perkov <luka@openwrt.org>
2014-11-03 11:21:34 -05:00
Luka Perkov
153e482090 rpcd-mod-lxc: add package for rpcd lxc module
Signed-off-by: Luka Perkov <luka@openwrt.org>
2014-10-21 07:58:47 -04:00