Skip to content

Commit 0c8dfa8

Browse files
committed
Fix nmpolicy document
Signed-off-by: Gris Ge <fge@redhat.com>
1 parent 3e90cc4 commit 0c8dfa8

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

44 files changed

+575
-1134
lines changed

nmpolicy/examples.md

Lines changed: 0 additions & 38 deletions
This file was deleted.

nmpolicy/examples/all-ethernet-up/captured.yaml

Lines changed: 0 additions & 68 deletions
This file was deleted.

nmpolicy/examples/all-ethernet-up/current.yaml

Lines changed: 0 additions & 26 deletions
This file was deleted.

nmpolicy/examples/all-ethernet-up/generated.yaml

Lines changed: 0 additions & 15 deletions
This file was deleted.

nmpolicy/examples/all-ethernet-up/policy.md

Lines changed: 0 additions & 9 deletions
This file was deleted.
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Set all linux bridges down
2+
3+
### policy
4+
```yaml
5+
capture:
6+
linux-bridges: interfaces.type=="linux-bridge"
7+
linux-bridges-down: capture.linux-bridges | interfaces.state:="down"
8+
desired:
9+
interfaces: "{{ capture.linux-bridges-down.interfaces }}"
10+
```
11+
12+
### current state
13+
```yaml
14+
interfaces:
15+
- name: eth0
16+
type: ethernet
17+
- name: br1
18+
type: linux-bridge
19+
state: up
20+
- name: br2
21+
type: linux-bridge
22+
state: up
23+
- name: br3
24+
type: linux-bridge
25+
state: up
26+
```
27+
28+
### generated state
29+
```yaml
30+
interfaces:
31+
- name: br1
32+
type: linux-bridge
33+
state: down
34+
- name: br2
35+
type: linux-bridge
36+
state: down
37+
- name: br3
38+
type: linux-bridge
39+
state: down

nmpolicy/examples/all-linux-bridges-down/captured.yaml

Lines changed: 0 additions & 31 deletions
This file was deleted.

nmpolicy/examples/all-linux-bridges-down/current.yaml

Lines changed: 0 additions & 12 deletions
This file was deleted.

nmpolicy/examples/all-linux-bridges-down/generated.yaml

Lines changed: 0 additions & 10 deletions
This file was deleted.

nmpolicy/examples/all-linux-bridges-down/policy.md

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)