is_valid
Description:
Parameters:
| this |
the WireGuardPeer instance |
| check_non_secrets |
if true, secret properties are validated. Otherwise, they are ignored for this purpose. |
| check_secrets |
if true, non-secret properties are validated. Otherwise, they are ignored for this purpose. |
Returns:
|
true if the peer is valid or fails with an error reason. |