]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Add 'GENERATE/ACCEPT FROM datetime TO datetime' to password options
authorPavel Tvrdík <pawel.tvrdik@gmail.com>
Thu, 28 Jan 2016 15:55:27 +0000 (16:55 +0100)
committerPavel Tvrdík <pawel.tvrdik@gmail.com>
Thu, 28 Jan 2016 16:16:53 +0000 (17:16 +0100)
nest/config.Y

index d6aa9653044d6ee8b498d54396e18190262fe906..769822f35f130dc423d1d1829433a09b13f09015 100644 (file)
@@ -409,8 +409,10 @@ password_item_params:
    /* empty */ { } 
  | GENERATE FROM datetime ';' password_item_params { this_p_item->genfrom = $3; }
  | GENERATE TO datetime ';' password_item_params { this_p_item->gento = $3; }
+ | GENERATE FROM datetime TO datetime ';' password_item_params { this_p_item->genfrom = $3; this_p_item->gento = $5; }
  | ACCEPT FROM datetime ';' password_item_params { this_p_item->accfrom = $3; }
  | ACCEPT TO datetime ';' password_item_params { this_p_item->accto = $3; }
+ | ACCEPT FROM datetime TO datetime ';' password_item_params { this_p_item->accfrom = $3; this_p_item->accto = $5; }
  | ID expr ';' password_item_params { this_p_item->id = $2; if ($2 <= 0) cf_error("Password ID has to be greated than zero."); }
  ;