forked from openvswitch/ovs
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ovn: Add ovn-controller-vtep debian package
Having a separate debian package for deploying the ovn-controller-vtep binary enables the ability to assign specific nodes the role of communicating with VTEP enabled TORs. Change-Id: Ia36aea7d89bd011a57918820b2a9f6e3469b3e04 Signed-off-by: Ryan Moats <[email protected]> Signed-off-by: Ben Pfaff <[email protected]>
- Loading branch information
Showing
7 changed files
with
119 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
#! /bin/sh | ||
# | ||
### BEGIN INIT INFO | ||
# Provides: ovn-controller-vtep | ||
# Required-Start: openvswitch-switch $remote_fs $syslog | ||
# Required-Stop: $remote_fs | ||
# Default-Start: 2 3 4 5 | ||
# Default-Stop: 0 1 6 | ||
# Short-Description: OVN Controller for VTEP enabled devices | ||
# Description: ovn-controller-vtep provides the userspace | ||
# components and utilities for OVN that can be run on | ||
# hosts taht connect to VTEP enabled devices. | ||
### END INIT INFO | ||
|
||
test -x /usr/bin/ovn-controller-vtep || exit 0 | ||
test -x /usr/share/openvswitch/scripts/ovn-ctl || exit 0 | ||
|
||
_SYSTEMCTL_SKIP_REDIRECT=yes | ||
|
||
. /usr/share/openvswitch/scripts/ovs-lib | ||
if [ -e /etc/default/ovn-controller-vtep ]; then | ||
. /etc/default/ovn-controller-vtep | ||
fi | ||
|
||
start () { | ||
set /usr/share/openvswitch/scripts/ovn-ctl ${1-start_controller_vtep} | ||
set "$@" $OVN_CTL_OPTS | ||
"$@" || exit $? | ||
} | ||
|
||
case $1 in | ||
start) | ||
start | ||
;; | ||
stop | force-stop) | ||
/usr/share/openvswitch/scripts/ovn-ctl stop_controller_vtep | ||
;; | ||
restart) | ||
start restart_controller_vtep | ||
;; | ||
status) | ||
/usr/share/openvswitch/scripts/ovn-ctl status_controller_vtep | ||
exit $? | ||
;; | ||
reload | force-reload) | ||
;; | ||
*) | ||
echo "Usage: $0 {start|stop|reload|force-reload|restart|status}" >&2 | ||
exit 1 | ||
;; | ||
esac | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
usr/bin/ovn-controller-vtep |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
ovn/controller-vtep/ovn-controller-vtep.8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters