how to find the connection profile location given a connection UUID?
Currently, I need to find the connection disk-location given a UUID by parsing the output of nmcli c show
,
$ nmcli -f uuid,filename c show --active
UUID FILENAME
c6d27c33-a955-4339-9a64-9ea52ce73438 /etc/NetworkManager/system-connections/eno1.nmconnection
008da8ab-e5b7-4f5f-b4ef-a9920b9b09db /etc/NetworkManager/system-connections/vlan4.nmconnection
If I append a specific UUID, the fields can queried are completely different,
$ nmcli -f uuid,filename c show --active 008da8ab-e5b7-4f5f-b4ef-a9920b9b09db
Error: invalid field 'uuid'; allowed fields: 6lowpan,802-11-olpc-mesh,802-11-wireless,802-11-wireless-security,802-1x,802-3-ethernet,adsl,bl
uetooth,bond,bridge,bridge-port,cdma,connection,dcb,dummy,ethtool,generic,gsm,hostname,infiniband,ip-tunnel,ipv4,ipv6,macsec,macvlan,match,o
vs-bridge,ovs-dpdk,ovs-external-ids,ovs-interface,ovs-patch,ovs-port,ppp,pppoe,proxy,serial,sriov,tc,team,team-port,tun,user,veth,vlan,vpn,v
rf,vxlan,wifi-p2p,wimax,wireguard,wpan and GENERAL,IP4,DHCP4,IP6,DHCP6,VPN, or profile,active.
Is there a easier way to find the connection profile location given a connection UUID?