dana-i2cat/opennaas — pull request #278 by adrian-rosello (2012-09-13 09:29:19+00:00)
Title: Support for creating ethernet subinterfaces without vlanid for untagged ones.

JunOS only allows to create subiterfaces without vlanid if the physical interface is not tagged and the portnumber is "0".

This patch is a work-around to allow the creation of those subinterfaces. All vlan-tagged interfaces will contain as parameter a NetworkPort associated with a VLANEndpoint, including the indicated vlan-id. If a NetworkPort doens't contain a ProtoclEndpoint means that the vlan-id was not set, so the restriction is that the portNumber must be 0.

The desired behaviour would be to check the physical interface encapsulation label. It would be possible to check the current interface configuration, but it would require to implement a dirty model to cover all possible cases.

Also a small battery of test has been added for this action.

JIRA ticket: http://jira.i2cat.net:8080/browse/OPENNAAS-338