summaryrefslogtreecommitdiff
path: root/templates/protocols/bgp/node.def
blob: ea3a9c4ca050b733bf429bbba007e23c4a43c0db (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
tag:
type: u32
help: Configure Border Gateway Protocol (BGP) parameters
comp_help: \1  <1-4294967294>\tAS number
syntax:expression: $VAR(@) >= 1 && $VAR(@) <= 4294967294 ; \
		   "AS number must be between 1 and 4294967294"

create:	if [ $(pgrep -c -x vyatta-bgpd) -eq 0 ]
	then sudo ${vyatta_sbindir}/vyatta-protocol start bgpd
	fi
	vyatta-vtysh -c "configure terminal" -c "router bgp $VAR(@)"
update: vyatta-vtysh -c "configure terminal" -c "router bgp $VAR(@)" \
		-c "bgp network import-check"
delete: vyatta-vtysh -c "configure terminal" -c "no router bgp $VAR(@)"
	if ! ${vyatta_sbindir}/vyatta-check-typeless-node.pl "protocols bgp"
	then sudo ${vyatta_sbindir}/vyatta-protocol stop bgpd
	fi