mirror of
https://gitlab.nic.cz/labs/bird.git
synced 2024-12-22 17:51:53 +00:00
Use local variables to test that functionality.
This commit is contained in:
parent
df8b85e33f
commit
f30b25f962
@ -11,8 +11,10 @@ define xyzzy = 120+10;
|
|||||||
function callme ( int arg1; int arg2 )
|
function callme ( int arg1; int arg2 )
|
||||||
int local1;
|
int local1;
|
||||||
int local2;
|
int local2;
|
||||||
|
int i;
|
||||||
{
|
{
|
||||||
print "Function callme called arguments " arg1 " and " arg2;
|
print "Function callme called arguments " arg1 " and " arg2;
|
||||||
|
i = arg2;
|
||||||
|
|
||||||
case arg1 {
|
case arg1 {
|
||||||
2: print "dva"; print "jeste jednou dva";
|
2: print "dva"; print "jeste jednou dva";
|
||||||
@ -64,6 +66,9 @@ int j;
|
|||||||
print "This route was from " rta.from;
|
print "This route was from " rta.from;
|
||||||
j = 7;
|
j = 7;
|
||||||
j = 17;
|
j = 17;
|
||||||
|
if rta.rip_metric > 15 then
|
||||||
|
print "RIP Metric is more than infinity";
|
||||||
|
|
||||||
accept;
|
accept;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user