lp:~gandelman-a/ubuntu/precise/cobbler-enlist/avahi

Created by Adam Gandelman and last modified
Get this branch:
bzr branch lp:~gandelman-a/ubuntu/precise/cobbler-enlist/avahi
Only Adam Gandelman can upload to this branch. If you are Adam Gandelman please log in for upload directions.

Branch merges

Related bugs

Related blueprints

Branch information

Owner:
Adam Gandelman
Status:
Development

Recent revisions

13. By Adam Gandelman

A bit'a cleanup

12. By Adam Gandelman

-D option to discovery via avahi

11. By Adam Gandelman

Merge trunk

10. By Adam Gandelman

Add support for multiple network interfaces (convert enlister->netif
to linked list enlister->netifs). When no interfaces specified, defaults
to registering all interfaces on the system. (LP: #868492)

9. By Adam Gandelman

Fix malloc() casting and memory initialization

8. By Adam Gandelman

Register all valid network interfaces when enlisting (LP: #868492)

This converts enlister->netif to a linked-list (enlister->netifs). Each node
of the LL is of struct netif, which contains an interface name and macaddr.

Any number of interfaces can be supplied via the command line. Each interface
is appended to the link list as a struct netif with the macaddr left NULL.

If no interfaces are supplied via argv, the list is populated with every
interface on the system (the macaddr for each left NULL).

What is contained in the enlister->netifs list is then verified. In the event
a non-existent interface was supplied via argv, it is removed from the list.
If enlister->netifs is empty (ie, none of the interfaces supplied actually
exist), die.

Nodes remaining in enlister->netifs get their mac addr's populated via ioctl.
Non-standard devices (ie, bridges not backed by any device) may contain a bad
mac addr, these are skipped. After populating, error out if the list does not
contain at least one valid mac address.

During system registration, loop over enlister->netifs and register each device.

On the cobbler side, the system ends up with something like:

# cobbler system dumpvars --name=testnode | grep mac_address_
mac_address_eth0 : 90:e6:ba:54:93:b9
mac_address_eth1 : 00:04:5a:5e:62:5f
mac_address_virbr1 : 52:54:00:c2:5d:94
mac_address_vnet0 : fe:16:3e:3e:a9:1a
mac_address_vnet1 : fe:54:00:4d:7e:a0

Cobbler will serve the profile via netboot to any of the interfaces.

7. By Adam Gandelman

A bit of cleanup, malloc() error checking

6. By Adam Gandelman

Convert enlist->netif to enlist->netifs linked list

5. By Dave Walker

* debian/cobbler-enlist-udeb.templates: Updated warning-note template to
  provide details, and a warning. (LP: #862567)
* debian/cobbler-enlist-udeb.postinst: Provided speech-marks for execute
  stanza.
* debian/cobbler-enlist.README.Debian: Initial document, including warning
  that enlistment is sent without encryption. (LP: #862567)

4. By Dave Walker

releasing version 0.1-2

Branch metadata

Branch format:
Branch format 7
Repository format:
Bazaar repository format 2a (needs bzr 1.16 or later)
Stacked on:
lp:ubuntu/precise/cobbler-enlist
This branch contains Public information 
Everyone can see this information.

Subscribers