Skip to content
프로젝트

소개

다양한 백엔드를 위한 선언적 네트워크 구성

시스템 및 인프라

이 수치를 측정하는 방법

측정된 스타 증가

in 24h
0
in 7 days
+1
in 15 days
+2
in 1 month
기록 수집 중

서로 겹치는 기간의 순증가량이며 일별 합계가 아닙니다. 측정값이 없으면 비워 둡니다. 스타는 관심도를 나타내며 품질을 보장하지 않습니다.

README.md

Original

Netplan - Declarative network configuration for various backends

Build+ABI Test+Coverage CI

Website

http://netplan.io

Documentation

An overview of the architecture can be found at netplan.io/design

Find the full documentation for Netplan on "Read the Docs".

To contribute documentation, these steps should get you started:

  1. Fork and clone the repo:

    git clone [email protected]:your_user_name/netplan.git
    
  2. Create a new branch:

    git checkout -b <your_branch_name>
    
  3. Navigate to the doc/ directory and make your contribution:

    cd doc
    
  4. View your documentation in the browser by running the make command from within the doc/ directory:

    make run
    
  5. Test your contribution to ensure good quality.

  6. Push your contribution to GitHub and create a pull request.

If you face issues, refer to our comprehensive contribution guide.

Build dependencies

Install the required build and test dependencies (Ubuntu/Debian):

sudo apt install \
    build-essential \
    pkg-config \
    meson \
    libglib2.0-dev \
    libyaml-dev \
    libsystemd-dev \
    uuid-dev \
    bash-completion \
    python3-dev \
    python3-cffi \
    python3-coverage \
    python3-pytest \
    python3-pytest-cov \
    pyflakes3 \
    pycodestyle \
    libcmocka-dev \
    gcovr \
    pandoc

Build using Meson

A Makefile wrapper is also provided for simplified usage. For that approach, please refer to the Build using Makefile section below.

Steps to build Netplan using the Meson build system inside the build/ directory:

  • meson setup build --prefix=/usr [-Db_coverage=true]
  • meson compile -C build
  • meson test -C build --verbose [TEST_NAME]
  • meson install -C build --destdir ../tmproot

Build using Makefile

Convenience targets are available via make:

  • make or make default
    Set up the build directory (_build) and build the project

  • make check
    Build and run all tests in _build

  • make linting
    Run Meson linting and codestyle test targets

  • make install [DESTDIR=../tmproot]
    Build and install into a staging root (defaults to ../tmproot)

  • make clean
    Remove generated build and test artifacts

  • make run ARGS='<command>'
    Run the locally built netplan CLI with the appropriate environment, for example, to run netplan help:

    $ make run ARGS="help"
    

Test local build

After running:

$ make
$ make install

the locally built netplan can be tested without installing it system-wide:

$ make run ARGS="<command>"

This wrapper sets the required environment variables (such as NETPLAN_GENERATE_PATH) automatically. These are needed because the Python CLI resolves binary and library paths at runtime.

As an example, let's use make run to run netplan info:

$ make run ARGS="info"
# output:
netplan.io:
  website: "https://netplan.io/"
  features:
  - dhcp-use-domains
  - auth-phase2
  ...

Releasing Netplan

Note: This section is for project maintainers.

  1. Go to https://github.com/canonical/netplan/releases/
  2. Click Draft a new release
  3. Click Select tag, then Create new tag. Enter a new tag, for example 1.2.3
  4. Fill in the Release title. For example, Netplan v1.2.3
  5. Click Generate release notes. This creates default release notes. Please add further details as required.
  6. In the Release label section, select Latest and Click Publish release
  7. This generates the upstream release artifacts used by downstream packaging.

Bug reports

Please file bug reports in Launchpad.

Contact us

Please join us on IRC in #netplan at Libera.Chat.

Our mailing list is here.

Email the list at [email protected].

관련 프로젝트 살펴보기

불러오는 중…