I changed the public key on a peer so I could do some testing. This was the only change:
# compare 0 1 [edit interfaces wireguard wg0 peer ERX-Test] >pubkey g61nxZ0dCkiPlFgshe2Hx67esYJJdGvxcIn+X/SFQEM=
After committing, the whole active config disappeared:
sudo wg show interface: wg0 interface: wg1 interface: wg2 interface: wg3
A reboot brought everything back up:
$ sudo wg show interface: wg0 public key: XXXX private key: (hidden) listening port: 2224 peer: XXXXXXXXX endpoint: 10.0.10.234:41005 allowed ips: 10.172.24.60/32, 2001:dead:beef::60/128 latest handshake: 56 seconds ago transfer: 692 B received, 732 B sent persistent keepalive: every 15 seconds peer: YYYYYYYYYY allowed ips: 10.172.24.30/32, 2001:dead:beef::30/128 persistent keepalive: every 15 seconds peer: ZZZZZZZZZZ allowed ips: 10.172.24.40/32, 2001:dead:beef::40/128 persistent keepalive: every 15 seconds peer: AAAAAAAAAAAA allowed ips: 10.172.24.20/32, 2001:dead:beef::20/