Gris Ge d51f523646
Some checks failed
CI / rust_lint (nightly) (push) Failing after 34s
CI / rpm_build (el9) (push) Failing after 20s
CI / rust_unit (stable) (push) Failing after 34s
CI / rust_unit (beta) (push) Failing after 38s
CI / rust_unit (nightly) (push) Failing after 36s
CI / rust_lint (stable) (push) Failing after 51s
Release / linux-x64 (push) Failing after 21s
CI / build_on_rust_1_66 (push) Failing after 34s
CI / py_lint (c9s-nm_stable-lint) (push) Failing after 36s
CI / py_lint (c9s-nm_stable-format) (push) Failing after 48s
CI / integ (c9s-nm_1.42-integ_slow) (push) Has been skipped
CI / integ (c9s-nm_1.42-integ_tier1) (push) Has been skipped
CI / integ (c9s-nm_1.42-integ_tier2) (push) Has been skipped
CI / integ (c9s-nm_main-integ_slow) (push) Has been skipped
CI / integ (c9s-nm_main-integ_tier1) (push) Has been skipped
CI / integ (c9s-nm_main-integ_tier2) (push) Has been skipped
CI / integ (c9s-nm_main-rust_go) (push) Has been skipped
CI / integ (c9s-nm_stable-integ_slow) (push) Has been skipped
CI / integ (c9s-nm_stable-integ_tier1) (push) Has been skipped
CI / integ (c9s-nm_stable-integ_tier2) (push) Has been skipped
CI / integ (c9s-nm_stable-rust_go) (push) Has been skipped
CI / integ (fed-nm_main-integ_tier1) (push) Has been skipped
CI / macos_gen_conf_build (nightly) (push) Has been cancelled
CI / macos_gen_conf_build (stable) (push) Has been cancelled
Release / macos-x64 (push) Has been cancelled
Release / macos-aarch64 (push) Has been cancelled
New release 2.2.33
=== Breaking changes
 - N/A

=== New features
 - Provide permanent-mac-address when querying. (9d0f8c01)
 - Add support of SRIOV drivers-autoprobe (05d6b996)
 - Support DNS modification in kernel mode. (ddb04e8d)
 - Support modification of static route in kernel mode. (4088e470)
 - Add description to top level YAML/JSON API. (bb9981c7)

=== Bug fixes
 - Fix error when purging DNS with empty server. (0a86028b)
 - Validate interface in desired port list of controller. (18677227)
 - Fix incorrect check on whether `vlan-default-pvid` changed. (018b91a9)

Signed-off-by: Gris Ge <fge@redhat.com>
2024-06-13 13:04:05 +08:00
2019-11-15 08:09:40 +01:00
2024-05-21 07:01:21 +08:00
2024-06-13 13:04:05 +08:00
2024-01-12 19:44:59 +08:00
2022-09-22 10:32:39 +02:00
2024-05-30 14:43:03 +08:00

Nmstate: A Declarative Network API

A declarative network management API for hosts.

CI crates.io docs.rs Fedora Rawhide version

Copr build status, all repos are built for Fedora Linux and RHEL/CentOS Stream/EPEL 8+:

  • Latest release: Latest release Copr build status
  • Git base: Git base Copr build status

Nmstate is a library with an accompanying command line tool that manages host networking settings in a declarative manner. The networking state is described by a pre-defined schema. Reporting of current state and changes to it (desired state) both conform to the schema.

Nmstate is aimed to satisfy enterprise needs to manage host networking through a northbound declarative API and multi provider support on the southbound. NetworkManager acts as the main (and currently the only) provider supported.

Nmstate provides:

  • Rust crate -- nmstate
  • Command line tools -- cargo install nmstatectl
  • Python library -- libnmstate
  • Go binding
  • C binding

More document could be found at nmstate.io

The codes of nmstate are licensed under Apache 2.0 except the test codes in tests folder are licensed under LGPL 2.1+

State example:

Desired/Current state example (YAML):

---
dns:
  config:
    server:
      - 192.0.2.1
    search:
      - example.org
routes:
  config:
    - destination: 0.0.0.0/0
      next-hop-interface: eth1
      next-hop-address: 192.0.2.1
interfaces:
  - name: eth1
    type: ethernet
    description: Main-NIC
    state: up
    ipv4:
      enabled: true
      dhcp: false
      address:
        - ip: 192.0.2.9
          prefix-length: 24
    ipv6:
      enabled: false

Contact

Nmstate GitHub Issues pages for discussion.

Matrix room: #nmstate:fedora.im

Contributing

Yay! We are happy to accept new contributors to the Nmstate project. Please follow these instructions to contribute.

Installation

For Fedora 29+, sudo dnf install nmstate.

For other distribution, please see the install guide.

Documentation

Changelog

Please refer to CHANGELOG

Description
No description provided
Readme 37 MiB
Languages
Rust 66.1%
Python 31.6%
Shell 1.2%
Makefile 0.5%
Go 0.3%
Other 0.3%