
Karesansui is an open-source virtualization management application made in Japan.
| Revision | 6b12947d86fe1dec68870a5efbeaab338f597273 (tree) |
|---|---|
| Time | 2012-07-27 17:03:57 |
| Author | Taizo ITO <taizo@kare...> |
| Commiter | Taizo ITO |
virt: Change attributes of network's qemu config xml file again after defining domain.
| @@ -1834,6 +1834,12 @@ class KaresansuiVirtConnection: | ||
| 1834 | 1834 | time.sleep(2) |
| 1835 | 1835 | self._conn.networkDefineXML(cfgxml) |
| 1836 | 1836 | |
| 1837 | + filename = "%s/%s.xml" %(VIRT_NETWORK_CONFIG_DIR,name) | |
| 1838 | + r_chmod(filename,"o-rwx") | |
| 1839 | + r_chmod(filename,"g+rw") | |
| 1840 | + if os.getuid() == 0: | |
| 1841 | + r_chgrp(filename,KARESANSUI_GROUP) | |
| 1842 | + | |
| 1837 | 1843 | if autostart is not None: |
| 1838 | 1844 | self.network.set_network_name(name) |
| 1839 | 1845 | self.network.autostart(autostart) |