--- a/ciena.grammar Fri Dec 18 14:16:48 2009 +0100
+++ b/ciena.grammar Fri Dec 18 20:02:09 2009 +0100
@@ -238,9 +238,9 @@
# Virtual switch
l_vs: "virtual-switch" "create" "vs" identifier
{ $::res->{vs}->{$item{identifier}} = {}; }
- | "virtual-switch" "ethernet" "create" "vs" identifier "vc" identifier
+ | "virtual-switch" "ethernet" "create" "vs" identifier avls
{
- my ($vs, $vc) = ($item[5], $item[7]);
+ my ($vs, $vc) = ($item[5], $avl->{vc});
$::res->{vs}->{$vs}->{ethernet}->{vc} = $vc;
}
| "virtual-switch" "ethernet" "add" "vs" identifier avls