On Sun, Oct 2, 2011 at 5:14 AM, Jörgen Maas <jorgen.maas(a)gmail.com> wrote:
James,
While working on some snippets i found this:
item_system:
def set_interface_type(self,type,interface):
<snip>
if type == "na":
type = "" <-- why?
but interface_type "" is not defined in the FIELDS dict:
["*interface_type","na",0,"Interface
Type",True,"",["na","master","slave","bond","bond_slave","bridge","bridge_slave"],"str"],
Whats the reason for this?
"NA" means that it's just a standard interface, but we don't actually
pass that down to snippets, we just give them an empty string. I
suppose we could have put "normal" there or something, but that's the
way it's been since we've had the bonded interface fields.