BIND 10 #1529: ifconfig parser improvements

BIND 10 Development do-not-reply at isc.org
Wed Dec 28 13:03:49 UTC 2011


#1529: ifconfig parser improvements
--------------------------------+-----------------------------------------
            Reporter:  tomek    |                        Owner:
                Type:  defect   |                       Status:  new
            Priority:  major    |                    Milestone:  DHCP 2011
           Component:  libdhcp  |                     Keywords:
           Sensitive:  0        |              Defect Severity:  N/A
         Sub-Project:  DHCP     |  Feature Depending on Ticket:
Estimated Difficulty:  0        |          Add Hours to Ticket:  0
         Total Hours:  0        |                    Internal?:  0
--------------------------------+-----------------------------------------
 libdhcp++ currently have interface detection implemented that uses
 netlink. It works on linux only. To validate its correctness, tests parse
 ifconfig output and match with list returned by libdhcp++.

 Unfortunately, this approach has 2 problems:
 - some ifconfig outputs vary between Linux versions, e.g. Gentoo version
 produces slightly different output than Ubuntu
 - In case of several addresses assigned to a single interface, ifconfig
 report alias interfaces while netlink reports a single interface with
 several addresses assigned.

 Jeremy suggested to write an awk script that will produce a consistent
 output. Shane suggested that Python would be better, as we already use
 Python.

-- 
Ticket URL: <http://bind10.isc.org/ticket/1529>
BIND 10 Development <http://bind10.isc.org>
BIND 10 Development


More information about the bind10-tickets mailing list