Displaying 12 results from an estimated 12 matches for "configure_interfac".
Did you mean:
configure_interface
2009 May 27
4
[PATCH node] REPOST Joey's and Darryl's ovirt-config-* patches
This is a repost of patches for ovirt-config-*
ACK to all. Pushed.
2009 May 22
0
[PATCH node] Restricts network configuration to a single NIC.
...a73e7c 100755
--- a/scripts/ovirt-config-networking
+++ b/scripts/ovirt-config-networking
@@ -18,6 +18,7 @@ trap 'exit $?' 1 2 13 15
CONFIG_FILE_ROOT="/files/etc/sysconfig/network-scripts/ifcfg"
NTP_CONFIG_FILE="/etc/ntp.conf"
+CONFIGURED_NIC=""
function configure_interface
{
@@ -31,6 +32,17 @@ function configure_interface
PREFIX=$OVIRT_IP_PREFIX
fi
+ if [[ -n "${CONFIGURED_NIC}" ]]; then
+ printf "This will delete the current configuration for ${CONFIGURED_NIC}.\n"
+ read -ep "Continue? (y/N) "
+...
2009 Jul 13
1
[PATCH node] Adds vlan support to auto-installations for the node. bz#511056
...ot;rm \$${vlroot}\\nset \$${vlroot}/DEVICE ${nic}.${vlan_id}\"
+ eval $vlconfig=\"\$${vlconfig}\\nset \$${vlroot}/BRIDGE ${bridge}\"
+ eval $vlconfig=\"\$${vlconfig}\\nset \$${vlroot}/VLAN yes\"
+ eval $vlfilename="${iffilename}.${vlan_id}"
+}
+
function configure_interface
{
local NIC=$1
@@ -118,12 +145,8 @@ function configure_interface
A|a) CONFIGURED_NIC=""; return;;
*)
if [[ -n "$REPLY" ]] && [[ "$REPLY" =~ "^[0-9]{1,}$"...
2009 Jul 08
1
Final follow up patch to add warning for NTP...
Now, rather than displaying yet another warning, the NTP configuration
just requires that the user select a NIC to configure first. That act
alone provides the single warning to the user that they'll be changing
their network configuration.
2009 Jun 25
1
[PATCH node] Rerunning network config resets all network config. bz#507393
..._FILE_ROOT="/files/etc/sysconfig/network-scripts/ifcfg"
+NTPCONF_FILE_ROOT="/files/etc/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-$B...
2009 Jun 30
2
[PATCH node] Make all yes/no prompts consistent. rhbz#508778
...return
+ ;;
+ esac
done
done
}
diff --git a/scripts/ovirt-config-networking b/scripts/ovirt-config-networking
index d29bd12..713cabc 100755
--- a/scripts/ovirt-config-networking
+++ b/scripts/ovirt-config-networking
@@ -40,10 +40,12 @@ function configure_interface
if [[ -n "${CONFIGURED_NIC}" ]]; then
printf "This will delete the current configuration for ${CONFIGURED_NIC}.\n"
- read -ep "Continue? (y/N) "
- case $REPLY in
- N|n) printf "\nAborting...\n"; return;;
- esac...
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 Oct 09
1
[PATCH node] validify ipv4/ipv6 static/dhcp choice else loop
...++++++++++++------------------
1 files changed, 58 insertions(+), 48 deletions(-)
diff --git a/scripts/ovirt-config-networking b/scripts/ovirt-config-networking
index 7d4e363..45f7129 100755
--- a/scripts/ovirt-config-networking
+++ b/scripts/ovirt-config-networking
@@ -160,56 +160,66 @@ function configure_interface
return;;
esac
- read -ep "Enable IPv4 support ([S]tatic IP, [D]HCP, [N]o or [A]bort)? "
- case $REPLY in
- D|d)
- BR_CONFIG="$BR_CONFIG\nset $BR_ROOT/BOOTPROTO dhcp"
-...
2010 Oct 25
0
[PATCH node] add network.py script
...+ self.BR_CONFIG = ""
+ self.VL_CONFIG = ""
+ self.VLAN_ID=""
+ self.VL_ROOT=""
+ self.VL_FILENAME =""
+ self.nic=""
+ self.bridge=""
+ self.vlan_id=""
+
+ def configure_interface(self):
+ log("Configuring Interface")
+ if OVIRT_VARS.has_key("OVIRT_IP_ADDRESS"):
+ IPADDR = OVIRT_VARS["OVIRT_IP_ADDRESS"]
+ NETMASK = OVIRT_VARS["OVIRT_IP_NETMASK"]
+ GATEWAY = OVIRT_VARS["OVIRT_IP_GATEW...
2009 Nov 11
1
[PATCH] Static IPv4 addresses entered are validated when they're entered.
...varname=\"$REPLY\"
+ return
+ else
+ printf "\nThe address $REPLY is not a valid IPv4 address.\n"
+ fi
+ done
+}
+
# Checks that a network interface was already configured.
function has_configured_interface
{
@@ -167,9 +189,9 @@ function configure_interface
;;
S|s)
printf "\n"
- read -ep "IP Address: "; IPADDR=$REPLY
- read -ep " Netmask: "; NETMASK=$REPLY
- read -ep " Gateway: "; GATEWAY=$REP...
2009 Dec 07
1
Rebased...
This version of the patch was rebased to go on top of recent changes committed
to ovirt-config-networking on next.
2011 Jul 20
0
[PATCH] fix ipv4 static/dhcp/disabled networking changes
...+++++++++++++-------------
scripts/ovirtfunctions.py | 2 +-
3 files changed, 41 insertions(+), 40 deletions(-)
diff --git a/scripts/network.py b/scripts/network.py
index 8159283..8956d00 100644
--- a/scripts/network.py
+++ b/scripts/network.py
@@ -42,27 +42,21 @@ class Network:
def configure_interface(self):
log("Configuring Interface")
+ self.disabled_nic = 0
if OVIRT_VARS.has_key("OVIRT_IP_ADDRESS"):
IPADDR = OVIRT_VARS["OVIRT_IP_ADDRESS"]
NETMASK = OVIRT_VARS["OVIRT_IP_NETMASK"]
GATEWAY =...