Hi,
The example file for ldpd(8) is using the reserved word "password" so we get
this nice error below, and it's also mentioned in the manpage that we shouldn't
use reserved words such as "password" for macros.
skoll$ doas ldpd -dv -f /etc/examples/ldpd.conf
/etc/examples/ldpd.conf:4: syntax error
...
/etc/examples/ldpd.conf:26: macro 'password' not defined
/etc/examples/ldpd.conf:26: syntax error
...
Please find a diff to correct this, OK?
Index: ldpd.conf
===================================================================
RCS file: /cvs/src/etc/examples/ldpd.conf,v
retrieving revision 1.2
diff -u -p -u -r1.2 ldpd.conf
--- ldpd.conf 5 Jun 2016 03:29:33 -0000 1.2
+++ ldpd.conf 6 Aug 2018 08:08:13 -0000
@@ -1,7 +1,7 @@
# $OpenBSD: ldpd.conf,v 1.2 2016/06/05 03:29:33 renato Exp $
# macros
-password="secret"
+pass="secret"
# global configuration
# router-id 10.0.0.1
@@ -23,7 +23,7 @@ address-family ipv4 {
}
neighbor 192.168.1.10 {
- password $password
+ password $pass
}
l2vpn CUST_A type vpls {