root / tools / kvm-ifup.in @ 1fe10404
History | View | Annotate | Download (973 Bytes)
1 | 1817dca9 | Michael Hanselmann | #!/bin/bash |
---|---|---|---|
2 | f299ca21 | Michael Hanselmann | # |
3 | 26916aad | Apollon Oikonomopoulos | |
4 | 1817dca9 | Michael Hanselmann | # Copyright (C) 2011, 2012 Google Inc. |
5 | 26916aad | Apollon Oikonomopoulos | # |
6 | 26916aad | Apollon Oikonomopoulos | # This program is free software; you can redistribute it and/or modify |
7 | 26916aad | Apollon Oikonomopoulos | # it under the terms of the GNU General Public License as published by |
8 | 26916aad | Apollon Oikonomopoulos | # the Free Software Foundation; either version 2 of the License, or |
9 | 26916aad | Apollon Oikonomopoulos | # (at your option) any later version. |
10 | 26916aad | Apollon Oikonomopoulos | # |
11 | 26916aad | Apollon Oikonomopoulos | # This program is distributed in the hope that it will be useful, but |
12 | 26916aad | Apollon Oikonomopoulos | # WITHOUT ANY WARRANTY; without even the implied warranty of |
13 | 26916aad | Apollon Oikonomopoulos | # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU |
14 | 26916aad | Apollon Oikonomopoulos | # General Public License for more details. |
15 | 26916aad | Apollon Oikonomopoulos | # |
16 | 26916aad | Apollon Oikonomopoulos | # You should have received a copy of the GNU General Public License |
17 | 26916aad | Apollon Oikonomopoulos | # along with this program; if not, write to the Free Software |
18 | 26916aad | Apollon Oikonomopoulos | # Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA |
19 | 26916aad | Apollon Oikonomopoulos | # 02110-1301, USA. |
20 | 26916aad | Apollon Oikonomopoulos | |
21 | 4855760b | Dimitris Aragiorgis | source @PKGLIBDIR@/net-common |
22 | 26916aad | Apollon Oikonomopoulos | |
23 | 26916aad | Apollon Oikonomopoulos | # Execute the user-supplied network script, if applicable |
24 | 6e3bf290 | Michael Hanselmann | if [ -x "$CONF_DIR/kvm-vif-bridge" ]; then |
25 | 6e3bf290 | Michael Hanselmann | exec $CONF_DIR/kvm-vif-bridge |
26 | 26916aad | Apollon Oikonomopoulos | fi |
27 | 26916aad | Apollon Oikonomopoulos | |
28 | 4855760b | Dimitris Aragiorgis | check |
29 | 4855760b | Dimitris Aragiorgis | setup_bridge |
30 | 4855760b | Dimitris Aragiorgis | setup_ovs |
31 | 4855760b | Dimitris Aragiorgis | setup_route |