wireguard: T3642: directly import keys to CLI when run in config mode
wireguard: T3642: directly import keys to CLI when run in config mode

vyos@vyos# run generate pki wireguard key-pair install interface wg10
"generate" CLI command executed from config session.
Generated private-key was imported to CLI!

Use the following command to verify: show interfaces wireguard wg10
Corresponding public-key to use on peer system is: 'hGaWcoG7f+5sPAUY/MNQH1JFhsYdsGTecYA9S2J8xGs='

vyos@vyos# run generate pki wireguard preshared-key install interface wg10 peer vyos
"generate" CLI command executed from config session.
Generated preshared-key was imported to CLI!

Use the following command to verify: show interfaces wireguard wg10

vyos@vyos# show interfaces wireguard wg10
+peer vyos {
+    preshared-key OwTALZy8w6VIBMxUwbOv6Ys7QMyhrtY4aw+0cUjmmCw=
+}
+private-key 0Pu95CejvCUCCwrTW39TCYnitESWAdIIFTVJb7UgxVU=
[edit]

vyos/vyos-1x,vyos/vyos-1x,vyos/vyos-1x,vyos/vyos-1x