Univention Bugzilla – Bug 32931
Split univention-ipcalc into module
Last modified: 2013-11-19 06:43:48 CET
The calculate functions are needed to compute LDAP names. They should be moved into a re-usable Python module.
Moved to univention.ipcalc r45379 | Bug #32931: Split IP calculation into re-usable module r45380 | Bug #32931: Add missing Build-Depends: python-ipaddr univention-ipcalc_5.0.0-2.28.201310211332 ChangeLog: Several functions of <command>univention-ipcalc6</command> to compute DNS names have been moved to the new Python module <package>univention.ipcalc</package>.
OK - -> univention-ipcalc --ip 10.200.7.66 --netmask 255.255.0.0 Network: 10.200.0.0 Reverse: 0.0.200.10 Pointer: 66.7 Broadcast: 10.200.255.255 -> univention-ipcalc6 --calcdns --output pointer \ --ip 2001:0db8:85a3:08d3:1319:8a2e:0370:7344 \ --netmask 64 4.4.3.7.0.7.3.0.e.2.a.8.9.1.3.1 -> univention-ipcalc6 --calcdns --output network \ --ip 2001:0db8:85a3:08d3:1319:8a2e:0370:7344 \ --netmask 64 2001:0db8:85a3:08d3 -> univention-ipcalc6 --calcdns --output reverse \ --ip 2001:0db8:85a3:08d3:1319:8a2e:0370:7344 \ --netmask 64 2001:0db8:85a3:08d3 -> python >>> import univention.ipcalc >>> import ipaddr >>> univention.ipcalc.calculate_ipv4_reverse(ipaddr.IPNetwork("10.200.7.0", "16")) '10.200.7' OK - Changelog
python-ipaddr is a build dependency ?
(In reply to Felix Botner from comment #3) > python-ipaddr is a build dependency ? Yes, otherwise the unit-test can run.
(In reply to Philipp Hahn from comment #4) > (In reply to Felix Botner from comment #3) > > python-ipaddr is a build dependency ? > > Yes, otherwise the unit-test can't run.
r45722 | Bug #32931: Add missing Depends: python-ipaddr univention-ipcalc_5.0.0-3.29.201310301715
OK
UCS 3.2 has been released: http://docs.univention.de/release-notes-3.2-en.html http://docs.univention.de/release-notes-3.2-de.html If this error occurs again, please use "Clone This Bug".