Bug 32931 - Split univention-ipcalc into module
Split univention-ipcalc into module
Status: CLOSED FIXED
Product: UCS
Classification: Unclassified
Component: Network
UCS 3.2
Other Linux
: P3 normal (vote)
: UCS 3.2
Assigned To: Philipp Hahn
Felix Botner
:
Depends on:
Blocks: 28670 33091
  Show dependency treegraph
 
Reported: 2013-10-21 13:17 CEST by Philipp Hahn
Modified: 2013-11-19 06:43 CET (History)
1 user (show)

See Also:
What kind of report is it?: ---
What type of bug is this?: ---
Who will be affected by this bug?: ---
How will those affected feel about the bug?: ---
User Pain:
Enterprise Customer affected?:
School Customer affected?:
ISV affected?:
Waiting Support:
Flags outvoted (downgraded) after PO Review:
Ticket number:
Bug group (optional):
Max CVSS v3 score:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Philipp Hahn univentionstaff 2013-10-21 13:17:07 CEST
The calculate functions are needed to compute LDAP names.
They should be moved into a re-usable Python module.
Comment 1 Philipp Hahn univentionstaff 2013-10-21 13:34:41 CEST
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>.
Comment 2 Felix Botner univentionstaff 2013-10-30 14:35:45 CET
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
Comment 3 Felix Botner univentionstaff 2013-10-30 14:37:14 CET
python-ipaddr is a build dependency ?
Comment 4 Philipp Hahn univentionstaff 2013-10-30 16:01:14 CET
(In reply to Felix Botner from comment #3)
> python-ipaddr is a build dependency ?

Yes, otherwise the unit-test can run.
Comment 5 Philipp Hahn univentionstaff 2013-10-30 16:01:29 CET
(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.
Comment 6 Philipp Hahn univentionstaff 2013-10-30 17:17:00 CET
r45722 | Bug #32931: Add missing Depends: python-ipaddr
univention-ipcalc_5.0.0-3.29.201310301715
Comment 7 Felix Botner univentionstaff 2013-10-31 11:29:14 CET
OK
Comment 8 Stefan Gohmann univentionstaff 2013-11-19 06:43:48 CET
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".