4 # Provides: ovn-controller-vtep
5 # Required-Start: openvswitch-switch $remote_fs $syslog
6 # Required-Stop: $remote_fs
7 # Default-Start: 2 3 4 5
9 # Short-Description: OVN Controller for VTEP enabled devices
10 # Description: ovn-controller-vtep provides the userspace
11 # components and utilities for OVN that can be run on
12 # hosts taht connect to VTEP enabled devices.
15 test -x /usr
/bin
/ovn-controller-vtep ||
exit 0
16 test -x /usr
/share
/openvswitch
/scripts
/ovn-ctl ||
exit 0
18 _SYSTEMCTL_SKIP_REDIRECT
=yes
20 .
/usr
/share
/openvswitch
/scripts
/ovs-lib
21 if [ -e /etc
/default
/ovn-controller-vtep
]; then
22 .
/etc
/default
/ovn-controller-vtep
26 set /usr
/share
/openvswitch
/scripts
/ovn-ctl
${1-start_controller_vtep}
27 set "$@" $OVN_CTL_OPTS
36 /usr
/share
/openvswitch
/scripts
/ovn-ctl stop_controller_vtep
39 start restart_controller_vtep
42 /usr
/share
/openvswitch
/scripts
/ovn-ctl status_controller_vtep
45 reload | force-reload
)
48 echo "Usage: $0 {start|stop|reload|force-reload|restart|status}" >&2