forked from ksator/openconfig-demo-with-juniper-devices
-
Notifications
You must be signed in to change notification settings - Fork 0
/
dc-vmx-1.oc.bgp.conf
55 lines (55 loc) · 1.02 KB
/
dc-vmx-1.oc.bgp.conf
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
interfaces {
ge-0/0/0 {
unit 0 {
family inet {
address 192.168.1.1/24;
}
}
}
}
replace:
openconfig-bgp:bgp {
neighbors {
neighbor 192.168.1.2 {
config {
peer-as 110;
peer-group OC ;
neighbor-address 192.168.1.2;
enabled true;
}
}
}
peer-groups {
peer-group OC {
config {
local-as 104;
peer-type EXTERNAL;
peer-group-name OC;
}
apply-policy {
config {
import-policy bgp-in;
export-policy bgp-out;
}
}
}
}
}
protocols {
replace:
lldp {
interface "ge-0/0/0";
interface fxp0 {
disable;
}
}
}
replace:
policy-options {
policy-statement bgp-in {
then accept;
}
policy-statement bgp-out {
then accept;
}
}