
Roman Ćapacz wrote:
- Label Proposal
I'm thinking about 3 options:
1)
<nml:label type="c-vlan">42</nml:label> <nml:label type="wavelength" unit="nm">1500</nml:label>
or 2)
use of tag namespaces to indicate a technology
<nml-eth:label>42</nml-eth:label> <nml:parameter name="vlan">42</nml:parameter> </nml-eth:label>
<nml-wv:label>1500</nml-wv:label> <nml:parameter name="wavelength">1500</nml:parameter> <nml:parameter name="unit">nm</nml:parameter> </nml-wv:label>
or 3)
use of attribute namespaces to introduce tech related attributes
<nml:label nml:type="c-vlan">42</nml:label> <nml:label nml:type="wavelength" nml-wv:unit="nm">1500</nml:label>
I find 2 a bit confusing because of the double value (both as label and as parameter), which makes me wonder if there is a situation where they can be different. I have no preference for either 1 or 3 (I see 3 as an extension of 1). The only think that is important to me is that it is possible to define multiple label types per technology. For example Ethernet can define VLANs, ISID and MAC; DWDM can define wavelengths and wavelength groups; SDH can define STS, TUG and VTG; ATM can define VPI and VCI, etc. Regards, Freek