[Nml-wg] hasService / hasInboundPort

Roman Łapacz romradz at man.poznan.pl
Wed Mar 13 10:39:09 EDT 2013


W dniu 2013-03-13 15:07, Freek Dijkstra pisze:
> On 12-03-2013 15:50, Jeroen van der Ham wrote:
>
>> For most of the NML model we have made it so that there is only one
>> relation defined between two objects. However, Richard spotted a
>> situation where we do have two:
>>
>> - A Port can have a "hasService" relation to a SwitchingService
>> - A SwitchingService can have a "hasInboundPort" relation to a Port
>>
>> Perhaps it would make sense to suggest a preference that one of them
>> must be there and that the other is optional. The second relation is
>> slightly more informative, so that is probably better.
> Very good catch by Richard.
>
> The second is more than "slightly" more informative; I'd even dare to
> say it contains vital additional information about the direction.
>
> So I suggest we should make the second form a MUST, and the first a
> SHOULD NOT. (Admittedly, the first form does no harm at all, and is
> useful. The reason for the strong SHOULD NOT is that it brings a risk of
> incompatibility if one organisation uses the first form, and another
> organisation uses the second form)

If you state SHOULD NOT then it's better to remove it from the schema. 
It's better to do it now, when NML is not really used by some 
applications, then later.

Roman

>
> Freek
> _______________________________________________
> nml-wg mailing list
> nml-wg at ogf.org
> https://www.ogf.org/mailman/listinfo/nml-wg



More information about the nml-wg mailing list