Skip to contentSkip to conversation

/aliases node and valid property names

DISCUSSION Tom Rini 2 participants 3 messages Mar 18, 2017 – Mar 20, 2017 1 message not in the archive

lore
Share & tools
lore

Tom Rini

author
#0 lore raw

Hey all,

I found out about https://github.com/raspberrypi/firmware/issues/613 and in digging a little harder, this is not the first case where 'ethernet' has been added rather than 'ethernet0'. Looking at the spec, it's implied (by all the examples) that property names end in a number but it's certainly allowable by the way things are worded to not. Is it worth adding any further words here, another example, or just leaving everything alone? Thanks!

Signature · 1 line
Tom
#1 lore raw
Quoted 9 lines · Tom Rini

Hey all,

I found out about https://github.com/raspberrypi/firmware/issues/613 and in digging a little harder, this is not the first case where 'ethernet' has been added rather than 'ethernet0'. Looking at the spec, it's implied (by all the examples) that property names end in a number but it's certainly allowable by the way things are worded to not. Is it worth adding any further words here, another example, or just leaving everything alone? Thanks!

Numbers shouldn't be required. Certainly on old OF-era machines, aliases called simply 'net' or 'disk' were both common and useful.

Signature · 4 lines
David Gibson			| I'll have my music baroque, and my code
david AT gibson.dropbear.id.au	| minimalist, thank you.  NOT _the_ _other_
				| _way_ _around_!
http://www.ozlabs.org/~dgibson

A message that is not in the archive (sent off-list or not yet received): [email protected]

author
#3 lore raw
Quoted 11 lines · David Gibson
Quoted 9 lines · Tom Rini

Hey all,

I found out about https://github.com/raspberrypi/firmware/issues/613 and in digging a little harder, this is not the first case where 'ethernet' has been added rather than 'ethernet0'. Looking at the spec, it's implied (by all the examples) that property names end in a number but it's certainly allowable by the way things are worded to not. Is it worth adding any further words here, another example, or just leaving everything alone? Thanks!

Quoted 2 lines

Numbers shouldn't be required. Certainly on old OF-era machines, aliases called simply 'net' or 'disk' were both common and useful.

OK. So leave things alone, or add a sentence / example without (and assume that this thread will be enough for anyone in the future who sees the occasional alias without a number and wonders if that's valid) ? Thanks!

Signature · 1 line
Tom