diff --git a/docs/examples.md b/docs/examples.md index 61c3daf7..ef188faa 100644 --- a/docs/examples.md +++ b/docs/examples.md @@ -24,3 +24,11 @@ It uses the `description` field to filter between primary and secondary NIC. ## Set all linux bridges down {% include_relative examples/example.md example="all-linux-bridges-down" %} + +## Convert DHCP aware interface to static addressing + +{% include_relative examples/example.md example="convert-dhcp-to-static" %} + +## Turn LLDP to true at interfaces active interfaces + +{% include_relative examples/example.md example="all-ethernet-up" %} diff --git a/docs/examples/all-ethernet-lldp-enabled/captured.yaml b/docs/examples/all-ethernet-lldp-enabled/captured.yaml deleted file mode 100644 index c74cecc3..00000000 --- a/docs/examples/all-ethernet-lldp-enabled/captured.yaml +++ /dev/null @@ -1,29 +0,0 @@ -ethernets: - metaInfo: - time: "2021-12-15T13:45:40Z" - version: "0" - state: - interfaces: - - name: eth0 - type: ethernet - lldp: - enabled: false - - name: eth1 - type: ethernet - lldp: - enabled: false - -ethernets-lldp: - metaInfo: - time: "2021-12-15T13:45:40Z" - version: "0" - state: - interfaces: - - name: eth0 - type: ethernet - lldp: - enabled: true - - name: eth1 - type: ethernet - lldp: - enabled: true diff --git a/docs/examples/all-ethernet-lldp-enabled/current.yaml b/docs/examples/all-ethernet-lldp-enabled/current.yaml deleted file mode 100644 index b20159b1..00000000 --- a/docs/examples/all-ethernet-lldp-enabled/current.yaml +++ /dev/null @@ -1,9 +0,0 @@ -interfaces: -- name: eth0 - type: ethernet - lldp: - enabled: false -- name: eth1 - type: ethernet - lldp: - enabled: false diff --git a/docs/examples/all-ethernet-lldp-enabled/generated.yaml b/docs/examples/all-ethernet-lldp-enabled/generated.yaml deleted file mode 100644 index 24c83f68..00000000 --- a/docs/examples/all-ethernet-lldp-enabled/generated.yaml +++ /dev/null @@ -1,9 +0,0 @@ -interfaces: -- name: eth0 - type: ethernet - lldp: - enabled: true -- name: eth1 - type: ethernet - lldp: - enabled: true diff --git a/docs/examples/all-ethernet-lldp-enabled/policy.md b/docs/examples/all-ethernet-lldp-enabled/policy.md deleted file mode 100644 index 2606ba68..00000000 --- a/docs/examples/all-ethernet-lldp-enabled/policy.md +++ /dev/null @@ -1,8 +0,0 @@ -{% raw %} -capture: - ethernets: interfaces.type=="ethernet" - ethernets-lldp: capture.ethernets | interfaces.lldp.enabled:=true - -desiredState: - interfaces: "{{ capture.ethernets-lldp.interfaces }}" -{% endraw %} diff --git a/docs/examples/all-ethernet-with-disabled-ipv4-dhcp/captured.yaml b/docs/examples/all-ethernet-with-disabled-ipv4-dhcp/captured.yaml deleted file mode 100644 index b3c9ddab..00000000 --- a/docs/examples/all-ethernet-with-disabled-ipv4-dhcp/captured.yaml +++ /dev/null @@ -1,49 +0,0 @@ -ethernets: - metaInfo: - time: "2021-12-15T13:45:40Z" - version: "0" - state: - interfaces: - - name: eth1 - type: ethernet - state: up - mac-address: 00:00:5E:00:00:01 - ipv4: - address: - - ip: 10.244.0.1 - prefix-length: 24 - - ip: 169.254.1.0 - prefix-length: 16 - dhcp: true - enabled: true - - name: eth2 - type: ethernet - state: up - mac-address: 00:00:5E:00:00:02 - ipv4: - address: - - ip: 10.244.0.2 - prefix-length: 24 - - ip: 169.254.2.0 - prefix-length: 16 - dhcp: false - enabled: true - -ethernets-ipv4-dhcp-disabled: - metaInfo: - time: "2021-12-15T13:45:40Z" - version: "0" - state: - interfaces: - - name: eth2 - type: ethernet - state: up - mac-address: 00:00:5E:00:00:02 - ipv4: - address: - - ip: 10.244.0.2 - prefix-length: 24 - - ip: 169.254.2.0 - prefix-length: 16 - dhcp: false - enabled: true diff --git a/docs/examples/all-ethernet-with-disabled-ipv4-dhcp/current.yaml b/docs/examples/all-ethernet-with-disabled-ipv4-dhcp/current.yaml deleted file mode 100644 index a8f3d43e..00000000 --- a/docs/examples/all-ethernet-with-disabled-ipv4-dhcp/current.yaml +++ /dev/null @@ -1,25 +0,0 @@ -interfaces: -- name: eth1 - type: ethernet - state: up - mac-address: 00:00:5E:00:00:01 - ipv4: - address: - - ip: 10.244.0.1 - prefix-length: 24 - - ip: 169.254.1.0 - prefix-length: 16 - dhcp: true - enabled: true -- name: eth2 - type: ethernet - state: up - mac-address: 00:00:5E:00:00:02 - ipv4: - address: - - ip: 10.244.0.2 - prefix-length: 24 - - ip: 169.254.2.0 - prefix-length: 16 - dhcp: false - enabled: true diff --git a/docs/examples/all-ethernet-with-disabled-ipv4-dhcp/generated.yaml b/docs/examples/all-ethernet-with-disabled-ipv4-dhcp/generated.yaml deleted file mode 100644 index 79631c74..00000000 --- a/docs/examples/all-ethernet-with-disabled-ipv4-dhcp/generated.yaml +++ /dev/null @@ -1,13 +0,0 @@ -interfaces: -- name: eth2 - type: ethernet - state: up - mac-address: 00:00:5E:00:00:02 - ipv4: - address: - - ip: 10.244.0.2 - prefix-length: 24 - - ip: 169.254.2.0 - prefix-length: 16 - dhcp: false - enabled: true diff --git a/docs/examples/all-ethernet-with-disabled-ipv4-dhcp/policy.md b/docs/examples/all-ethernet-with-disabled-ipv4-dhcp/policy.md deleted file mode 100644 index 2285651b..00000000 --- a/docs/examples/all-ethernet-with-disabled-ipv4-dhcp/policy.md +++ /dev/null @@ -1,8 +0,0 @@ -{% raw %} -capture: - ethernets: interfaces.type=="ethernet" - ethernets-ipv4-dhcp-disabled: capture.ethernets | interfaces.ipv4.dhcp==false - -desiredState: - interfaces: "{{ capture.ethernets-ipv4-dhcp-disabled.interfaces }}" -{% endraw %}