Created
November 16, 2021 05:11
-
-
Save nmathew/a35215ff5a87a489d462b539d713f94f to your computer and use it in GitHub Desktop.
sudo nmstatectl apply nmstate.yaml
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| sles@sles-master:~> sudo nmstatectl apply nmstate.yaml | |
| 2021-11-16 05:06:13,878 root DEBUG Nmstate version: 1.1.0 | |
| 2021-11-16 05:06:13,879 root DEBUG Applying desire state: {'interfaces': [{'name': 'eth1', 'state': 'up', 'type': 'ethernet', 'ipv4': {'enabled': True, 'dhcp': False, 'address': [{'ip': '10.100.11.133', 'prefix-length': 24}]}}]} | |
| 2021-11-16 05:06:14,080 root DEBUG NetworkManager version 1.32.12 | |
| 2021-11-16 05:06:14,086 root DEBUG Async action: Retrieve applied config: ethernet eth0 started | |
| 2021-11-16 05:06:14,086 root DEBUG Async action: Retrieve applied config: ethernet eth1 started | |
| 2021-11-16 05:06:14,088 root DEBUG Async action: Retrieve applied config: ethernet eth0 finished | |
| 2021-11-16 05:06:14,089 root DEBUG Async action: Retrieve applied config: ethernet eth1 finished | |
| 2021-11-16 05:06:14,092 root DEBUG Interface ethernet.eth1 found. Merging the interface information. | |
| 2021-11-16 05:06:14,104 root DEBUG Interface lo is type unknown and will be ignored during the activation | |
| 2021-11-16 05:06:14,105 root DEBUG Async action: Create checkpoint started | |
| 2021-11-16 05:06:14,109 root DEBUG Checkpoint /org/freedesktop/NetworkManager/Checkpoint/5 created for all devices | |
| 2021-11-16 05:06:14,109 root DEBUG Async action: Create checkpoint finished | |
| 2021-11-16 05:06:14,112 root DEBUG Nispor: current network state {'ifaces': {'lo': {'name': 'lo', 'iface_type': 'loopback', 'state': 'unknown', 'mtu': 65536, 'flags': ['loopback', 'lower_up', 'running', 'up'], 'ipv4': {'addresses': [{'address': '127.0.0.1', 'prefix_len': 8, 'valid_lft': 'forever', 'preferred_lft': 'forever'}]}, 'ipv6': {'addresses': [{'address': '::1', 'prefix_len': 128, 'valid_lft': 'forever', 'preferred_lft': 'forever'}]}, 'mac_address': '00:00:00:00:00:00'}, 'eth1': {'name': 'eth1', 'iface_type': 'ethernet', 'state': 'up', 'mtu': 8942, 'flags': ['broadcast', 'lower_up', 'multicast', 'running', 'up'], 'ipv4': {'addresses': [{'address': '192.0.2.251', 'prefix_len': 24, 'valid_lft': 'forever', 'preferred_lft': 'forever'}]}, 'mac_address': 'fa:16:3e:23:88:b5', 'permanent_mac_address': 'fa:16:3e:23:88:b5'}, 'eth0': {'name': 'eth0', 'iface_type': 'ethernet', 'state': 'up', 'mtu': 8942, 'flags': ['broadcast', 'lower_up', 'multicast', 'running', 'up'], 'ipv4': {'addresses': [{'address': '10.100.11.110', 'prefix_len': 24, 'valid_lft': 'forever', 'preferred_lft': 'forever'}]}, 'ipv6': {'addresses': [{'address': 'fe80::f816:3eff:fe80:431e', 'prefix_len': 64, 'valid_lft': 'forever', 'preferred_lft': 'forever'}]}, 'mac_address': 'fa:16:3e:80:43:1e', 'permanent_mac_address': 'fa:16:3e:80:43:1e'}}, 'routes': [{'address_family': 'ipv6', 'tos': 0, 'table': 254, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': '::1/128', 'oif': 'lo', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 256, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 254, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': 'fe80::/64', 'oif': 'eth0', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 256, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'local', 'flags': 0, 'dst': '::1/128', 'oif': 'lo', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 0, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'universe', 'route_type': 'local', 'flags': 0, 'dst': 'fe80::f816:3eff:fe80:431e/128', 'oif': 'eth0', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 0, 'perf': 0}, {'address_family': 'ipv6', 'tos': 0, 'table': 255, 'protocol': 'boot', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': 'ff00::/8', 'oif': 'eth0', 'cache_clntref': 0, 'cache_last_use': 0, 'cache_expires': 0, 'cache_error': 0, 'cache_used': 0, 'cache_id': 0, 'cache_ts': 0, 'cache_ts_age': 0, 'metric': 256, 'perf': 0}, {'address_family': 'ipv4', 'tos': 0, 'table': 254, 'protocol': 'dhcp', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'oif': 'eth0', 'gateway': '10.100.11.1'}, {'address_family': 'ipv4', 'tos': 0, 'table': 254, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'unicast', 'flags': 0, 'dst': '10.100.11.0/24', 'oif': 'eth0', 'prefered_src': '10.100.11.110'}, {'address_family': 'ipv4', 'tos': 0, 'table': 254, 'protocol': 'dhcp', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': '169.254.169.254/32', 'oif': 'eth0', 'gateway': '10.100.11.2'}, {'address_family': 'ipv4', 'tos': 0, 'table': 254, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'unicast', 'flags': 0, 'dst': '192.0.2.0/24', 'oif': 'eth1', 'prefered_src': '192.0.2.251', 'metric': 101}, {'address_family': 'ipv4', 'tos': 0, 'table': 254, 'protocol': 'static', 'scope': 'universe', 'route_type': 'unicast', 'flags': 0, 'dst': '198.51.100.0/24', 'oif': 'eth1', 'gateway': '192.0.2.1', 'metric': 150}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'broadcast', 'flags': 0, 'dst': '10.100.11.0/32', 'oif': 'eth0', 'prefered_src': '10.100.11.110'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'host', 'route_type': 'local', 'flags': 0, 'dst': '10.100.11.110/32', 'oif': 'eth0', 'prefered_src': '10.100.11.110'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'broadcast', 'flags': 0, 'dst': '10.100.11.255/32', 'oif': 'eth0', 'prefered_src': '10.100.11.110'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'broadcast', 'flags': 0, 'dst': '127.0.0.0/32', 'oif': 'lo', 'prefered_src': '127.0.0.1'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'host', 'route_type': 'local', 'flags': 0, 'dst': '127.0.0.0/8', 'oif': 'lo', 'prefered_src': '127.0.0.1'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'host', 'route_type': 'local', 'flags': 0, 'dst': '127.0.0.1/32', 'oif': 'lo', 'prefered_src': '127.0.0.1'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'broadcast', 'flags': 0, 'dst': '127.255.255.255/32', 'oif': 'lo', 'prefered_src': '127.0.0.1'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'broadcast', 'flags': 0, 'dst': '192.0.2.0/32', 'oif': 'eth1', 'prefered_src': '192.0.2.251'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'host', 'route_type': 'local', 'flags': 0, 'dst': '192.0.2.251/32', 'oif': 'eth1', 'prefered_src': '192.0.2.251'}, {'address_family': 'ipv4', 'tos': 0, 'table': 255, 'protocol': 'kernel', 'scope': 'link', 'route_type': 'broadcast', 'flags': 0, 'dst': '192.0.2.255/32', 'oif': 'eth1', 'prefered_src': '192.0.2.251'}], 'rules': [{'action': 'table', 'address_family': 'ipv6', 'flags': 0, 'tos': 0, 'table': 255, 'protocol': 'kernel'}, {'action': 'table', 'address_family': 'ipv6', 'flags': 0, 'tos': 0, 'table': 254, 'priority': 32766, 'protocol': 'kernel'}, {'action': 'table', 'address_family': 'ipv4', 'flags': 0, 'tos': 0, 'table': 255, 'protocol': 'kernel'}, {'action': 'table', 'address_family': 'ipv4', 'flags': 0, 'tos': 0, 'table': 254, 'priority': 32766, 'protocol': 'kernel'}, {'action': 'table', 'address_family': 'ipv4', 'flags': 0, 'tos': 0, 'table': 253, 'priority': 32767, 'protocol': 'kernel'}]} | |
| 2021-11-16 05:06:14,112 root DEBUG Nispor: desired network state {'name': 'eth1', 'state': 'up', 'type': 'ethernet', 'ipv4': {'enabled': True, 'dhcp': False, 'address': [{'ip': '10.100.11.133', 'prefix-length': 24}], '_routes': [{'table-id': 254, 'metric': 150, 'destination': '198.51.100.0/24', 'next-hop-address': '192.0.2.1', 'next-hop-interface': 'eth1'}]}, 'ipv6': {'enabled': False, '_routes': []}, 'lldp': {'enabled': False}, 'mac-address': 'FA:16:3E:23:88:B5', 'accept-all-mac-addresses': False, '_permanent_mac_address': 'fa:16:3e:23:88:b5', 'mtu': 8942} | |
| 2021-11-16 05:06:14,113 root WARNING IPv6 link local address fe80::f816:3eff:fe80:431e/64 is ignored when applying desired state | |
| 2021-11-16 05:06:14,115 root DEBUG Async action: Update profile uuid:ae09b40e-afbb-3bdc-9a49-8e84924791ae iface:eth1 type:ethernet started | |
| 2021-11-16 05:06:14,124 root DEBUG Async action: Update profile uuid:ae09b40e-afbb-3bdc-9a49-8e84924791ae iface:eth1 type:ethernet finished | |
| 2021-11-16 05:06:14,125 root DEBUG Async action: Reapply device config: eth1 ethernet ae09b40e-afbb-3bdc-9a49-8e84924791ae started | |
| 2021-11-16 05:06:14,132 root DEBUG Async action: Reapply device config: eth1 ethernet ae09b40e-afbb-3bdc-9a49-8e84924791ae finished | |
| 2021-11-16 05:06:14,135 root DEBUG Async action: Retrieve applied config: ethernet eth0 started | |
| 2021-11-16 05:06:14,136 root DEBUG Async action: Retrieve applied config: ethernet eth1 started | |
| 2021-11-16 05:06:14,137 root DEBUG Async action: Retrieve applied config: ethernet eth0 finished | |
| 2021-11-16 05:06:14,137 root DEBUG Async action: Retrieve applied config: ethernet eth1 finished | |
| 2021-11-16 05:06:14,138 root DEBUG Interface ethernet.eth1 found. Merging the interface information. | |
| 2021-11-16 05:06:14,151 root DEBUG Async action: Destroy checkpoint /org/freedesktop/NetworkManager/Checkpoint/5 started | |
| 2021-11-16 05:06:14,153 root DEBUG Checkpoint /org/freedesktop/NetworkManager/Checkpoint/5 destroyed | |
| 2021-11-16 05:06:14,153 root DEBUG Async action: Destroy checkpoint /org/freedesktop/NetworkManager/Checkpoint/5 finished | |
| Desired state applied: | |
| --- | |
| interfaces: | |
| - name: eth1 | |
| type: ethernet | |
| state: up | |
| ipv4: | |
| enabled: true | |
| address: | |
| - ip: 10.100.11.133 | |
| prefix-length: 24 | |
| dhcp: false |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment