Univention Bugzilla – Attachment 6254 Details for
Bug 36339
Bonding configuration generates wrong miimon configuration
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Fix UMC wizard and correct UCR variables (untested)
correct_miimon.patch (text/plain), 2.42 KB, created by
Janis Meybohm
on 2014-10-29 15:21:13 CET
(
hide
)
Description:
Fix UMC wizard and correct UCR variables (untested)
Filename:
MIME Type:
Creator:
Janis Meybohm
Created:
2014-10-29 15:21:13 CET
Size:
2.42 KB
patch
obsolete
>diff --git a/branches/ucs-3.2/ucs-3.2-3/base/univention-system-setup/debian/changelog b/branches/ucs-3.2/ucs-3.2-3/base/univention-system-setup/debian/changelog >index 9bd5959..2166a9c 100644 >--- a/branches/ucs-3.2/ucs-3.2-3/base/univention-system-setup/debian/changelog >+++ b/branches/ucs-3.2/ucs-3.2-3/base/univention-system-setup/debian/changelog >@@ -1,3 +1,9 @@ >+univention-system-setup (7.0.69-62) unstable; urgency=low >+ >+ * Bug #3xxxx: Fix miimon UCR variable >+ >+ -- Philipp Hahn <hahn@univention.de> Wed, 29 Oct 2014 15:03:49 +0100 >+ > univention-system-setup (7.0.69-61) unstable; urgency=low > > * Fixed translation error in ApplianceWizard.js (Bug #34090) >diff --git a/branches/ucs-3.2/ucs-3.2-3/base/univention-system-setup/debian/univention-system-setup.postinst b/branches/ucs-3.2/ucs-3.2-3/base/univention-system-setup/debian/univention-system-setup.postinst >index 7bb5e81..6c7eb24 100755 >--- a/branches/ucs-3.2/ucs-3.2-3/base/univention-system-setup/debian/univention-system-setup.postinst >+++ b/branches/ucs-3.2/ucs-3.2-3/base/univention-system-setup/debian/univention-system-setup.postinst >@@ -37,4 +37,11 @@ create_logfile /var/log/univention/setup.log "root:adm" 640 > > chmod -R 700 /var/cache/univention-system-setup > >+if dpkg --compare-versions "$2" lt-nl 7.0.69-62~ >+then >+ ucr search --brief --non-empty '^interfaces/.*/options/' | >+ sed -rne 's,(interfaces/.*/options/.*): (miimon .*)$,\1=bond-\2,p' | >+ xargs -d '\n' --no-run-if-empty ucr set >+fi >+ > exit 0 >diff --git a/branches/ucs-3.2/ucs-3.2-3/base/univention-system-setup/umc/python/setup/network.py b/branches/ucs-3.2/ucs-3.2-3/base/univention-system-setup/umc/python/setup/network.py >index 1a777a6..ce6039f 100644 >--- a/branches/ucs-3.2/ucs-3.2-3/base/univention-system-setup/umc/python/setup/network.py >+++ b/branches/ucs-3.2/ucs-3.2-3/base/univention-system-setup/umc/python/setup/network.py >@@ -729,7 +729,7 @@ class Bond(Device): > self.bond_mode = self.modes[value.strip()] > except KeyError: > pass # invalid mode >- elif name == 'miimon': >+ elif name in ('bond-miimon', 'miimon'): > try: > self.miimon = int(value) > except ValueError: >@@ -747,7 +747,7 @@ class Bond(Device): > if self.bond_mode == 1 and self.bond_primary: > options.append('bond-primary %s' % (' '.join(self.bond_primary),)) > if self.miimon is not None: >- options.append('miimon %s' % (self.miimon,)) >+ options.append('bond-miimon %s' % (self.miimon,)) > > return options >
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 Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 36339
: 6254