Edit

IABSD.fr/src/etc/examples/ldpd.conf

Branch :

  • Show log

    Commit

  • Author : mestre
    Date : 2018-08-06 17:26:31
    Hash : fcd3a45b
    Message : Correct example file since reserved words cannot be used as macros. Not only that, the macro used was password and if we changed it to something like pass="secret" it would log it if the daemon was ran in verbose mode. Hint and OK claudio@

  • etc/examples/ldpd.conf
  • #	$OpenBSD: ldpd.conf,v 1.3 2018/08/06 17:26:31 mestre Exp $
    
    # macros
    peer1="192.168.1.10"
    
    # global configuration
    # router-id 10.0.0.1
    # fib-update no
    # transport-preference ipv4
    
    address-family ipv4 {
    	# explicit-null yes
    	# keepalive 120
    	# targeted-hello-accept yes
    	# transport-address 10.0.0.1
    
    	interface em0
    	interface vlan5 {
    		link-hello-holdtime 9
    		link-hello-interval 3
    	}
    	targeted-neighbor 172.16.1.10
    }
    
    neighbor $peer1 {
    	password "secret"
    }
    
    l2vpn CUST_A type vpls {
    	bridge bridge0
    	interface em1
    	pseudowire mpw0 {
    		# control-word no
    		# status-tlv no
    		neighbor-id 10.0.1.5
    		pw-id 100
    	}
    	pseudowire mpw1 {
    		neighbor-id 10.0.2.8
    		pw-id 100
    	}
    }