File: simple.conf

package info (click to toggle)
exabgp 4.2.25-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 9,612 kB
  • sloc: python: 37,482; sh: 581; perl: 31; makefile: 23
file content (145 lines) | stat: -rw-r--r-- 2,517 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
bgp {

	# Those are the families the we are trying to negotiate with the peer

	family classical-internet {
		ipv4 [
			unicast
			multicast
			flow
		]
		ipv6 [
			unicast
			flow
		]
	}

	# Those are the capabilities we are trying to negotiate with the peer
	capability default-capability {
		#	# added automatically
		#	family [
		#		all
		#	]
		# default asn4 enable
		# default aigp disable
		# default operational disable
		# default multi-session disable
		# default route-refresh enable
		# default graceful-restart disable
		# default add-path disable
	}

	# Those are the capabilities we are trying t negotiate with the peer
	capability classical-capability {
		family classical-internet
		asn4 enable
		route-refresh enable
		graceful-restart 60
	}

	session classical-ibgp {
		router-id     127.0.0.1
		hold-time     180
		asn {
			local  65500
			peer   65500
		}
		capability classical-capability
	}

	session classical-ebgp {
		router-id     10.0.0.1
		hold-time     180
		asn {
			local  12345
			peer   54321
		}
		capability {
			family {
				ipv4 [
					unicast
					multicast
					flow
				]
			}
			asn4 enable
			route-refresh enable
			graceful-restart 60
		}
	}

	session default-ibgp {
		router-id     127.0.0.1
		hold-time     180
		asn {
			local  65500
			peer   65500
		}
		capability classical-capability
	}

	session minimum-session {
		asn {
			local  65500
			peer   65500
		}
		capability {
		}
	}

	process second-log-to-syslog {
		run "etc/exabgp/run/syslog-1.py with args"
		encoder json             # default text
		received {
			all [
				parsed
			]
		}
	}

	# We want to send some information to the backend process
	process first-log-to-syslog {
		run "etc/exabgp/run/syslog-1.py with args"
		encoder json             # default text
		received {
			open [
				parsed				# only the parsed open (if we can not parse it we can not start anyway)
			]
			keepalive [				# only the raw (there is nothing to parse anyway)
				packets
			]
			update [
				packets				# packets first
				parsed				# and parsed second, so if the parser barfs we still have the raw data
			]
			notification [
				consolidated		# simple message, want both in one json update
			]
		}
		sent {
			packets
		}
	}

	neighbor core-router-1 {
		session classical-ibgp
		tcp {
			bind          82.219.212.34
			connect       195.8.215.15
			ttl-security  disable
			md5           "secret"
		}
		announce [
			local-routes
			off-goes-the-ddos
		]
	}

#	neighbor core-router-in-datacenter {
#
#	}

}

bmp {
}