TT#13784 add peering rules stopper flag

Change-Id: I04b142313651cbc25c29e6abb8e35172ef67ab02
changes/46/13646/3
Gerhard Jungwirth 9 years ago
parent 258edb9286
commit 4ab72cbb31

@ -97,7 +97,8 @@ sub base :Chained('group_list') :PathPart('') :CaptureArgs(1) {
{ name => 'callee_pattern', search => 1, title => $c->loc('Callee Pattern') },
{ name => 'caller_pattern', search => 1, title => $c->loc('Caller Pattern') },
{ name => 'description', search => 1, title => $c->loc('Description') },
{ name => 'enabled', search => 1, title => $c->loc('Enabled') },
{ name => 'enabled', search => 0, title => $c->loc('Enabled') },
{ name => 'stopper', search => 0, title => $c->loc('Stopper') },
]);
$c->stash->{inbound_rules_dt_columns} = NGCP::Panel::Utils::Datatables::set_columns($c, [
{ name => 'priority', search => 0, title => $c->loc('Priority') },

@ -55,6 +55,15 @@ has_field 'enabled' => (
},
);
has_field 'stopper' => (
type => 'Boolean',
default => 0,
element_attr => {
rel => ['tooltip'],
title => ['Stop processing of further rules if this rule matches.'],
},
);
has_field 'save' => (
type => 'Submit',
value => 'Save',
@ -65,7 +74,7 @@ has_field 'save' => (
has_block 'fields' => (
tag => 'div',
class => [qw/modal-body/],
render_list => [qw/callee_prefix callee_pattern caller_pattern description enabled/],
render_list => [qw/callee_prefix callee_pattern caller_pattern description enabled stopper/],
);
has_block 'actions' => (

@ -15,7 +15,7 @@ has_field 'group_id' => (
has_block 'fields' => (
tag => 'div',
class => [qw/modal-body/],
render_list => [qw/group_id callee_prefix callee_pattern caller_pattern description enabled/],
render_list => [qw/group_id callee_prefix callee_pattern caller_pattern description enabled stopper/],
);
1;

@ -17,7 +17,7 @@ has_field 'group' => (
has_block 'fields' => (
tag => 'div',
class => [qw/modal-body/],
render_list => [qw/callee_prefix callee_pattern caller_pattern description enabled group/],
render_list => [qw/callee_prefix callee_pattern caller_pattern description enabled stopper group/],
);
1;

@ -23,7 +23,7 @@ __END__
=head1 NAME
NGCP::Panel::Form::Peering::RuleAPI
NGCP::Panel::Form::RewriteRule::RuleAPI
=head1 DESCRIPTION

Loading…
Cancel
Save