Commit 1d5e06f9 authored by Jonathon Duerig's avatar Jonathon Duerig

ptopgen now emits 'role="experimental"' on interfaces. rspec-ad.rnc will now...

ptopgen now emits 'role="experimental"' on interfaces. rspec-ad.rnc will now accept such advertisements.
parent 3c4549d3
......@@ -45,7 +45,7 @@ LinkContents &=
InterfaceDecl &=
ComponentInterfaceDeclName &
element monitoring { attribute user_traffic { text }? }? &
attribute role { "control" }? &
attribute role { "control" | "experimental" }? &
attribute public_ipv4 { text }?
InterfaceRef &=
......
......@@ -1676,9 +1676,13 @@ sub print_node_interfaces
my $name = $interfaces[$i];
my $urn = GeniHRN::GenerateInterface($OURDOMAIN, $nodeName, $name);
print " <interface component_id=\"$urn\" ";
if (exists($interfaceroles{"$nodeName:$name"})
&& $interfaceroles{"$nodeName:$name"} eq "ctrl") {
print "role=\"control\" ";
if (exists($interfaceroles{"$nodeName:$name"})) {
my $roleString = $interfaceroles{"$nodeName:$name"};
if ($roleString eq "ctrl") {
print "role=\"control\" ";
} elsif ($roleString eq "expt") {
print "role=\"experimental\" ";
}
}
if (is_public_interface("$nodeName:$name")) {
my $ip = $interfaceips{"$nodeName:$name"};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment