Skip to content

Instantly share code, notes, and snippets.

@fluffy
Created March 11, 2019 17:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fluffy/ff23a868071781c90e5cd6a99ff2736f to your computer and use it in GitHub Desktop.
Save fluffy/ff23a868071781c90e5cd6a99ff2736f to your computer and use it in GitHub Desktop.
Broken netplan.io config file
Here is a file that does not work
network:
version: 2
renderer: networkd
ethernets:
enp0s31f6:
auth:
key-management: 802.1x
password: hash:some-stuff-here
method: peap
identity: ghewett
dhcp4: false
addresses:
- 1.2.3.4
gateway4: 5.6.7.8
nameservers:
search: [cisco.com, otherdomain]
addresses:
- 1.1.1.1
- 2.2.2.2
(IP's and credentials changed )
This gives us
DEBUG:command generate: running ['/lib/netplan/generate']
** (generate:19354): DEBUG: 09:23:41.614: Processing input file /etc/netplan/01-netcfg.yaml..
** (generate:19354): DEBUG: 09:23:41.614: starting new processing pass
Error in network definition /etc/netplan/01-netcfg.yaml line 7 column 6: unknown key auth
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment