Skip to content

Commit

Permalink
Remove manually setting RUST_LOG from docs
Browse files Browse the repository at this point in the history
Signed-off-by: Atanas Dinov <[email protected]>
  • Loading branch information
atanasdinov committed Nov 20, 2023
1 parent efafaa5 commit fb5241c
Showing 1 changed file with 9 additions and 14 deletions.
23 changes: 9 additions & 14 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,6 @@ Please refer to the official nmstate docs for more extensive [examples](https://
#### Run NMC

```shell
$ export RUST_LOG=info # set log level ("error" by default)
$ ./nmc generate --config-dir desired-states --output-dir network-config
[2023-11-20T10:55:56Z INFO nmc::generate_conf] Generating config from "desired-states/node1.yaml"...
[2023-11-20T10:55:56Z INFO nmc::generate_conf] Generating config from "desired-states/node2.yaml"...
Expand All @@ -105,18 +104,15 @@ $ ./nmc generate --config-dir desired-states --output-dir network-config
The output is the following:

```shell
$ ls -R network-config
network-config:
host_config.yaml node1 node2 node3

network-config/node1:
eth0.nmconnection

network-config/node2:
eth1.nmconnection

network-config/node3:
eth4.nmconnection
$ find network-config | sort
network-config
network-config/host_config.yaml
network-config/node1
network-config/node1/eth0.nmconnection
network-config/node2
network-config/node2/eth1.nmconnection
network-config/node3
network-config/node3/eth4.nmconnection
```

There are separate directories for each host (identified by their input <i>hostname</i>.yaml).
Expand Down Expand Up @@ -154,7 +150,6 @@ Simply copy the directory containing the results from `nmc generate` (`network-c
#### Run NMC

```shell
$ export RUST_LOG=info # set log level ("error" by default)
$ ./nmc apply --config-dir network-config/
[2023-11-20T11:05:36Z INFO nmc::apply_conf] Identified host: node2
[2023-11-20T11:05:36Z INFO nmc::apply_conf] Copying file... "network-config/node2/eth1.nmconnection"
Expand Down

0 comments on commit fb5241c

Please sign in to comment.