dana-i2cat/opennaas — pull request #84 by isartcanyameres (2012-03-27 17:45:04+00:00)
Title: Feature/set encapsulation in eth

Fixes http://jira.i2cat.net:8080/browse/OPENNAAS-95 issue.

Replaces setEncapsulationCommand functionallity with two commands:
- SetEncapsulation, which sets the type of encapsulation (tagged-ethernet or none)
- SetEncapsulationLabel, which sets the encapsulation label for a particular interface and encapsulation type.

Some logic is introduced in chassis capability, although through a not-so-elegant hack.
Capability transforms generic setEncapsulation calls, to encapsulation specific actions.

Junos driver has been extended with actions to:
- SetTaggedEthernetEncapsulation
- RemoveTaggedEthernetEncapsulation
- SetVlanId

These actions retrieve candidate configuration to check they can be executed.