Displaying 8 results from an estimated 8 matches for "if_root".
Did you mean:
i_root
2009 Jul 13
1
[PATCH node] Adds vlan support to auto-installations for the node. bz#511056
...virt-config-networking
+++ b/scripts/ovirt-config-networking
@@ -45,6 +45,33 @@ function has_configured_interface
fi
}
+# Configures vlan for the node.
+# $1 - the nic
+# $2 - the network bridge name
+# $3 - the vlan id
+# $4 - the VL_ROOT variable
+# $5 - the VL_CONFIG variable
+# $6 - the IF_ROOT value
+# $7 - the vlan config filename variable
+# $8 - the NIC config filename
+function setup_vlan
+{
+ local nic=$1
+ local bridge=$2
+ local vlan_id=$3
+ local vlroot=$4
+ local vlconfig=$5
+ local ifroot=$6
+ local vlfilename=$7
+ local iffilename=$8
+
+ eval $vlroot...
2009 Jun 25
1
[PATCH node] Rerunning network config resets all network config. bz#507393
.../ntp"
NTP_CONFIG_FILE="/etc/ntp.conf"
+NTPSERVERS=""
CONFIGURED_NIC=""
# if local storage is not configured, then exit the script
@@ -55,10 +57,10 @@ function configure_interface
printf "\nConfigure $BRIDGE for use by $NIC..\n\n"
- local IF_ROOT="$CONFIG_FILE_ROOT-$NIC"
+ local IF_ROOT="$IFCONFIG_FILE_ROOT-$NIC"
local IF_CONFIG="rm $IF_ROOT\nset $IF_ROOT/DEVICE $NIC"
- local BR_ROOT="$CONFIG_FILE_ROOT-$BRIDGE"
+ local BR_ROOT="$IFCONFIG_FILE_ROOT-$BRIDGE"
local BR_CONFI...
2010 Oct 25
0
[PATCH node] add network.py script
...f.WORKDIR, file)
+ BRIDGE = "br" + self.CONFIGURED_NIC
+ IF_FILENAME = self.WORKDIR + "/augtool-" + self.CONFIGURED_NIC
+ BR_FILENAME = self.WORKDIR + "/augtool-" + BRIDGE
+ log("\nConfigure $BRIDGE for use by $NIC..\n\n")
+ IF_ROOT = "%s-%s" % (self.IFCONFIG_FILE_ROOT, self.CONFIGURED_NIC)
+ self.IF_CONFIG += "rm %s\nset %s/DEVICE %s\n" % (IF_ROOT, IF_ROOT, self.CONFIGURED_NIC)
+ BR_ROOT = "%s-%s" % (self.IFCONFIG_FILE_ROOT, BRIDGE)
+ self.BR_CONFIG += "rm %s\nset %s/DEV...
2011 Aug 11
1
[PATCH] fix augtool calls
parse input augtool strings to oper,key,value
---
scripts/network.py | 32 ++++++++++++++++----------------
1 files changed, 16 insertions(+), 16 deletions(-)
diff --git a/scripts/network.py b/scripts/network.py
index f51ee7c..65b551c 100644
--- a/scripts/network.py
+++ b/scripts/network.py
@@ -165,11 +165,11 @@ class Network:
ntpconf = ntpconf.split("\n")
for line
2009 Jul 07
1
Obsoletes previous patch
This patch obsoletes the previously submitted patch. It adds a
warning message to the user when they select to change the NTP settings.
2009 Jun 29
2
[PATCH node] Change DNS setup to match NTP. rhbz#508677
...rn ;;
- esac
done
fi
@@ -233,9 +225,8 @@ function configure_dns
DNS1=$(echo "$DNS" | awk -F, '{print $1}')
DNS2=$(echo "$DNS" | awk -F, '{print $2}')
- test -n "$DNS1" && IF_CONFIG="set $IF_ROOT/DNS1 $DNS1"
- test -n "$DNS2" && IF_CONFIG="set $IF_ROOT/DNS2 $DNS2"
- printf "$IF_CONFIG\n" >> $IF_FILENAME
+ test -n "$DNS1" && printf "set $IF_ROOT/DNS1 $DNS1\n" >> $IF_FILENAME
+ test...
2009 Jun 30
2
[PATCH node] Make all yes/no prompts consistent. rhbz#508778
...case $REPLY in
@@ -129,18 +128,22 @@ function configure_interface
esac
printf "\n"
- read -ep "Is this correct (Y/N/A)? "
- case $REPLY in
- Y|y)
- IF_CONFIG="$IF_CONFIG\nset $IF_ROOT/ONBOOT yes"
- BR_CONFIG="$BR_CONFIG\nset $BR_ROOT/ONBOOT yes"
-
- printf "$IF_CONFIG\n" > $IF_FILENAME
- printf "$BR_CONFIG\n" > $BR_FILENAME
- break
+ ask...
2011 Jul 20
0
[PATCH] fix ipv4 static/dhcp/disabled networking changes
...ss")
nic_hwaddr = n_address.readline().strip("\n")
n_address.close()
@@ -112,10 +106,14 @@ class Network:
if not OVIRT_VARS.has_key("OVIRT_IP_ADDRESS"):
- if not self.VL_CONFIG:
- self.IF_CONFIG += "set %s/BRIDGE %s\n" % (IF_ROOT, BRIDGE)
- self.BR_CONFIG += "set %s/BOOTPROTO dhcp\n" % BR_ROOT
- else:
+ if OVIRT_VARS.has_key("OVIRT_BOOTIF") and self.disabled_nic == 0:
+ if not self.VL_CONFIG:
+ self.IF_CONFIG += "set %s/BRIDGE %s\n" % (IF_...