fabric-testbed / InformationModel

FABRIC Information Model library
MIT License
7 stars 1 forks source link

SubInterface support #204

Closed kthare10 closed 2 months ago

kthare10 commented 3 months ago

Enable SubInterfaces for SmartNIC.

When using 802.1q VLANs it is necessary to be able to describe not just the interface on which the trunk is defined, but also the sub-interfaces belonging to individual VLANs. This need may apply to both ARM as well as ASM models. In the former case they may describe the internal configuration of the aggregate network and in the latter a configuration of sub-interfaces in a trunk defined by the user. The sub-interfaces must be connected to their ‘parent’ physical interfaces and we must be able to apply pathfinding algorithms to trace back to the NetworkService instance they are ultimately connected to. Thus sub-interfaces in FIM are expressed as a special ConnectionPoint type ‘Subinterface’ and are always connected from a ConnectionPoint with type ‘Dedicated’ or ‘TrunkPort’. Thus the sub-interface relationship is not recursive.

The ‘Subinterface’ ConnectionPoint is connected to its ‘parent’ ConnectionPoint via ‘connects’ relationship in order to preserve the pathfinding logic approach described in the previous section.