diff --git a/lib/admin/Controller/peering.pm b/lib/admin/Controller/peering.pm index 652b9f9..1fc29f9 100644 --- a/lib/admin/Controller/peering.pm +++ b/lib/admin/Controller/peering.pm @@ -217,7 +217,8 @@ sub create_rule : Local { my $grpid = $c->request->params->{grpid}; my $callee_prefix = $c->request->params->{callee_prefix}; - my $caller_prefix = $c->request->params->{caller_prefix}; + my $callee_pattern = $c->request->params->{callee_pattern}; + my $caller_pattern = $c->request->params->{caller_pattern}; my $description = $c->request->params->{description}; # $messages{crulerr} = 'Client.Syntax.MalformedPeerGroupName' @@ -228,7 +229,8 @@ sub create_rule : Local { { group_id => $grpid, data => { callee_prefix => $callee_prefix, - caller_prefix => $caller_prefix, + callee_pattern => $callee_pattern, + caller_pattern => $caller_pattern, description => $description }, }, @@ -310,7 +312,8 @@ sub edit_rule : Local { my $grpid = $c->request->params->{grpid}; my $ruleid = $c->request->params->{ruleid}; my $callee_prefix = $c->request->params->{callee_prefix}; - my $caller_prefix = $c->request->params->{caller_prefix}; + my $callee_pattern = $c->request->params->{callee_pattern}; + my $caller_pattern = $c->request->params->{caller_pattern}; my $description = $c->request->params->{description}; # $messages{crulerr} = 'Client.Syntax.MalformedPeerGroupName' @@ -321,7 +324,8 @@ sub edit_rule : Local { { id => $ruleid, data => { callee_prefix => $callee_prefix, - caller_prefix => $caller_prefix, + callee_pattern => $callee_pattern, + caller_pattern => $caller_pattern, description => $description }, }, diff --git a/root/tt/peering_detail.tt b/root/tt/peering_detail.tt index cfdf9d2..3ee2a27 100644 --- a/root/tt/peering_detail.tt +++ b/root/tt/peering_detail.tt @@ -134,11 +134,15 @@ +
+ +
+ name="caller_pattern" value="[% rule.caller_pattern %]" />
-
+
@@ -151,8 +155,9 @@
[% ELSE %]
[% rule.callee_prefix %]
-
[% rule.caller_prefix %]
-
[% rule.description %]
+
[% rule.callee_pattern %]
+
[% rule.caller_pattern %]
+
[% rule.description %]
[% UNLESS Catalyst.session.admin.read_only %] Edit @@ -179,11 +184,15 @@
+
+ +
+ name="caller_pattern" value="" />
-
+