Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 829364 Details for
Bug 1027440
DHCP not working on OVSIntPort
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
ifup-ovs with dhcp support for Internal Ports
ifup-ovs (text/plain), 3.64 KB, created by
Flavio Leitner
on 2013-11-26 16:44:02 UTC
(
hide
)
Description:
ifup-ovs with dhcp support for Internal Ports
Filename:
MIME Type:
Creator:
Flavio Leitner
Created:
2013-11-26 16:44:02 UTC
Size:
3.64 KB
patch
obsolete
>#!/bin/bash > ># Copyright (c) 2011 Alexey I. Froloff. ># ># Licensed under the Apache License, Version 2.0 (the "License"); ># you may not use this file except in compliance with the License. ># You may obtain a copy of the License at: ># ># http://www.apache.org/licenses/LICENSE-2.0 ># ># Unless required by applicable law or agreed to in writing, software ># distributed under the License is distributed on an "AS IS" BASIS, ># WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. ># See the License for the specific language governing permissions and ># limitations under the License. > >. /etc/init.d/functions > >cd /etc/sysconfig/network-scripts >. ./network-functions > >[ -f ../network ] && . ../network > >CONFIG=${1} >TIMEOUT=10 > >need_config ${CONFIG} > >source_config > >OTHERSCRIPT="/etc/sysconfig/network-scripts/ifup-${REAL_DEVICETYPE}" > >if [ ! -x ${OTHERSCRIPT} ]; then > OTHERSCRIPT="/etc/sysconfig/network-scripts/ifup-eth" >fi > >check_recursion () >{ > [ -n "${UPPEDSTACK}" ] && for _r in ${UPPEDSTACK}; do > [ "$_r" = "$1" ] && return 1 > done > > return 0 >} > >ifup_ovs_bridge () >{ > if ovs-vsctl br-exists "${OVS_BRIDGE}"; then :; else > /sbin/ifup "${OVS_BRIDGE}" > fi >} > >ovs_bootproto() >{ > if [ -n "$OVSDHCPINTERFACES" ]; then > for intf in $OVSDHCPINTERFACES; do > /sbin/ifup $intf > done > fi > > if [ "${OVSBOOTPROTO}" = "dhcp" ]; then > BOOTPROTO=dhcp ${OTHERSCRIPT} ${CONFIG} > fi > > # When dhcp is not enabled, it is possible that someone may want > # a standalone interface/bridge (i.e it may not have any ports). > # Configure it. > if [ "${OVSBOOTPROTO}" != "dhcp" ]; then > ${OTHERSCRIPT} ${CONFIG} > fi >} > >if [ -z "${UPPEDSTACK}" ]; then > UPPEDSTACK="${DEVICE}" >fi > >[ -n "${OVSREQUIRES}" ] && for _i in ${OVSREQUIRES}; do > if ( check_recursion "$_i" ); then > UPPEDSTACK="${UPPEDSTACK} $_i" /sbin/ifup "$_i" > fi >done > >if [ -x /usr/bin/systemctl ]; then > if ! systemctl --quiet is-active openvswitch-nonetwork.service; then > /usr/bin/systemctl start openvswitch-nonetwork.service > fi >else > if [ ! -f /var/lock/subsys/openvswitch ]; then > /sbin/service openvswitch start > fi >fi > >case "$TYPE" in > OVSBridge) > # If bridge already exists and is up, it has been configured through > # other cases like OVSPort, OVSIntPort and OVSBond. If it is down or > # it does not exist, create it. It is possible for a bridge to exist > # because it remained in the OVSDB for some reason, but it won't be up. > if check_device_down "${DEVICE}"; then > ovs-vsctl -t ${TIMEOUT} -- --may-exist add-br "$DEVICE" $OVS_OPTIONS \ > ${OVS_EXTRA+-- $OVS_EXTRA} \ > ${STP+-- set bridge "$DEVICE" stp_enable="${STP}"} > else > OVSBRIDGECONFIGURED="yes" > fi > > ovs_bootproto > exit 0 > ;; > OVSPort) > ifup_ovs_bridge > ${OTHERSCRIPT} ${CONFIG} ${2} > ovs-vsctl -t ${TIMEOUT} -- --may-exist add-port "$OVS_BRIDGE" "$DEVICE" $OVS_OPTIONS ${OVS_EXTRA+-- $OVS_EXTRA} > ;; > OVSIntPort) > ifup_ovs_bridge > ovs-vsctl -t ${TIMEOUT} -- --may-exist add-port "$OVS_BRIDGE" "$DEVICE" $OVS_OPTIONS -- set Interface "$DEVICE" type=internal ${OVS_EXTRA+-- $OVS_EXTRA} > ${OTHERSCRIPT} ${CONFIG} ${2} > > ovs_bootproto > exit 0 > ;; > OVSBond) > ifup_ovs_bridge > for _iface in $BOND_IFACES; do > /sbin/ifup ${_iface} > done > ovs-vsctl -t ${TIMEOUT} -- --fake-iface add-bond "$OVS_BRIDGE" "$DEVICE" ${BOND_IFACES} $OVS_OPTIONS ${OVS_EXTRA+-- $OVS_EXTRA} > ${OTHERSCRIPT} ${CONFIG} ${2} > OVSINTF=${DEVICE} /sbin/ifup "$OVS_BRIDGE" > ;; > OVSTunnel) > ifup_ovs_bridge > ovs-vsctl -t ${TIMEOUT} -- --may-exist add-port "$OVS_BRIDGE" "$DEVICE" $OVS_OPTIONS -- set Interface "$DEVICE" type=$OVS_TUNNEL_TYPE $OVS_TUNNEL_OPTIONS ${OVS_EXTRA+-- $OVS_EXTRA} > ${OTHERSCRIPT} ${CONFIG} ${2} > ;; > *) > echo $"Invalid OVS interface type $TYPE" > exit 1 > ;; >esac
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1027440
:
829364
|
849626