nmstate

A Declarative API for Host Network Management

View on GitHub

Nmstate Installation Guide

RPM based

Stable release

Nmstate is in Fedora and EPEL 7 testing, you may install it using below commands.

sudo subscription-manager repos --enable \
    "rhel-*-optional-rpms" --enable "rhel-*-extras-rpms"
sudo yum install https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm
sudo yum-config-manager --enable epel-testing
sudo yum install nmstate
sudo yum install epel-release -y
sudo yum-config-manager --enable epel-testing
sudo yum install nmstate
sudo yum install yum-plugin-copr
sudo yum copr enable nmstate/nmstate-el7
sudo yum install nmstate
sudo dnf copr enable nmstate/nmstate-el8
sudo dnf install nmstate

Developer Branch

We have copr repos which automatically build whenever a patch goes into git master branch. Only for develop use.

sudo dnf copr enable nmstate/nmstate-git-fedora
sudo dnf install nmstate
sudo yum install yum-plugin-copr
sudo yum copr enable  nmstate/nmstate-git-el7
sudo yum install nmstate
sudo dnf copr enable  nmstate/nmstate-git-el8
sudo dnf install nmstate

PyPI/pip

Stable Release

pip --user --upgrade install nmstate

Developer Branch

git clone https://github.com/nmstate/nmstate.git
cd nmstate
pip install --user --upgrade .

setup.py

Stable Release

# Download tarball and signature from:
# https://github.com/nmstate/nmstate/releases/
gpg2 --recv-keys F7910D93CA83D77348595C0E899014C0463C12BB
gpg2 --verify ./nmstate-*.tar.gz.asc nmstate-*.tar.gz
tar xf nmstate-*.tar.gz
cd nmstate-*
python setup.py build
python setup.py install

Developer Branch

git clone https://github.com/nmstate/nmstate.git
cd nmstate
python setup.py build
python setup.py install