Summary: | doesn't work if there are options for another profile | ||
---|---|---|---|
Product: | Sisyphus | Reporter: | Ivan Zakharyaschev <imz> |
Component: | NetworkManager | Assignee: | Mikhail Efremov <sem> |
Status: | CLOSED FIXED | QA Contact: | qa-sisyphus |
Severity: | major | ||
Priority: | P2 | CC: | dd1email, sem |
Version: | unstable | ||
Hardware: | all | ||
OS: | Linux |
Description
Ivan Zakharyaschev
2009-01-04 00:36:54 MSK
Expected: If one adds smth like /etc/net/ifaces/wlan0/options#TIBET, NM is still controlling wlan0 (because the current default netprofile has NM_CONTROLLED=yes in /etc/net/ifaces/wlan0/options). Workaround and a cleaner solution at the same time -- naming the ifaces with different configurations differently: after patching the etcnet code for smoother operation with renamings with the patches https://bugzilla.altlinux.org/show_bug.cgi?id=11786#c1 and https://bugzilla.altlinux.org/show_bug.cgi?id=18416#c1 , rename from ifaces/wlan0/options to ifaces/wlan/options, rename from ifaces/wlan0/options#TIBET to ifaces/wtibet/options and add: $ cat iftab # -*- conf-space -*- # wlan0 is evil! wlan mac 00:19:d2:* arp 1 # Selecting by the driver seems not to work for wireless. # So, I'm using MAC. # MAC matches both wlan0 and wmaster0; that's why I need ARP as well. $ cat iftab#TIBET # -*- conf-space -*- # wlan0 is evil! wtibet mac 00:19:d2:* arp 1 # Selecting by the driver seems not to work for wireless. # So, I'm using MAC. # MAC matches both wlan0 and wmaster0; that's why I need ARP as well. $ After this, wlan is the default NM-controlled iface. And switching to TIBET works fine. (I have not yet tested switching back from TIBET to the default: will it be successfully NM-controlled as a result?) ((Just talk.) I'm going to always follow this principle of naming different "logical" ifaces (for different purposes) on the same device differently -- it's more clear, for example, for writing iptables rules). I will fix it in Sisyphus at last. NetworkManager-0.8.3.999-alt1.git20110415 -> sisyphus: * Fri Apr 15 2011 Mikhail Efremov <sem@altlinux> 0.8.3.999-alt1.git20110415 - etcnet-alt: + Added more tests. + Handle MAC from iplink file. + Handle route metric. + Honor current etcnet network profile (closes: #18435). + Various fixes. + Allow tab as tokens delimiter. - Add 80-etcnet-post dispatcher script. - Add 30-efw dispatcher script (closes: #21834). - Suppress annoying messages. - init script: Use the new Sleep() method. - init script: Disconnect all ifaces on stop. - ntpd hook: Don't create garbage in /tmp. - Set cp1251 as prefered encoding for Cyrillic langs (closes: #25404). - upstream git snapshot (NM_0_8 branch). |