Skip to content

Commit

Permalink
Update file references from 'sample' to 'example'
Browse files Browse the repository at this point in the history
  • Loading branch information
buty4649 committed Mar 31, 2024
1 parent 32b4ac8 commit c24055e
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,8 @@ nfpms:
bindir: /usr/sbin
section: net
contents:
- src: sample/netnsplan.yaml
dst: /etc/netnsplan/netnsplan.yaml
- src: example/netnsplan.yaml
dst: /etc/netnsplan/netnsplan.yaml.example
type: config

changelog:
Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
### Preparing the Configuration File

Network settings are defined by YAML files. By default, netnsplan reads all YAML files (*.yaml) under `/etc/netnsplan`, merges them, and applies the settings based on the merged result.
Below is an example of the configuration. The file name is set as `/etc/netnsplan/sample.yaml`.
Below is an example of the configuration. The file name is set as `/etc/netnsplan/example.yaml`.

```yaml
# /etc/netnsplan/sample.yaml
# /etc/netnsplan/example.yaml
netns:
ns1:
ethernets:
Expand Down Expand Up @@ -50,15 +50,15 @@ In this configuration, two network namespaces, `ns1` and `ns2`, are created, eac
To apply network namespaces and network settings based on the configuration file, execute the following command:

```bash
netnsplan apply -c config.yaml
netnsplan apply
```

### Deleting Network Namespaces

To delete the created network namespaces, execute the following command:

```bash
netnsplan destroy -c config.yaml
netnsplan destroy
```

## Installation
Expand Down
8 changes: 4 additions & 4 deletions README_ja.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@

ネットワーク設定はYAMLファイルによって定義します。
netnsplanではデフォルトでは`/etc/netnsplan`配下にあるYAMLファイル(*.yaml)をすべて読み込み、それらをマージした結果を基に適用を行います。
以下は設定例です。ファイル名は/etc/netnsplan/sample.yamlとしています。
以下は設定例です。ファイル名は/etc/netnsplan/example.yamlとしています。

```yaml
# /etc/netnsplan/sample.yaml
# /etc/netnsplan/example.yaml
netns:
ns1:
ethernets:
Expand Down Expand Up @@ -51,15 +51,15 @@ netns:
設定ファイルを元にネットワーク名前空間とネットワーク設定を適用するには、以下のコマンドを実行します:

```bash
netnsplan apply -c config.yaml
netnsplan apply
```

### ネットワーク名前空間の削除

作成したネットワーク名前空間を削除するには、以下のコマンドを実行します:

```bash
netnsplan destroy -c config.yaml
netnsplan destroy
```

## インストール
Expand Down
File renamed without changes.

0 comments on commit c24055e

Please sign in to comment.