Skip to content

Commit ee2d0cf

Browse files
mihirramrajpal2
authored and
mrajpal2
committed
Policy and Policy-Forwarding Changes
1 parent 9ce0b2f commit ee2d0cf

File tree

2 files changed

+76
-2
lines changed

2 files changed

+76
-2
lines changed

release/models/policy-forwarding/openconfig-pf-forwarding-policies.yang

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,13 @@ submodule openconfig-pf-forwarding-policies {
2121
"This submodule contains configuration and operational state
2222
relating to the definition of policy-forwarding policies.";
2323

24-
oc-ext:openconfig-version "0.7.0";
24+
oc-ext:openconfig-version "0.8.0";
25+
26+
revision "2025-04-13" {
27+
description
28+
"Add additional security features.";
29+
reference "0.8.0";
30+
}
2531

2632
revision "2024-11-14" {
2733
description
@@ -270,6 +276,15 @@ submodule openconfig-pf-forwarding-policies {
270276
packets that match the rule.";
271277
}
272278

279+
leaf mirror {
280+
type boolean;
281+
default false;
282+
description
283+
"When set, mirror (i.e. duplicate and send copy to specified target)
284+
the traffic selected instead of simply forwarding. Mutually exclusive
285+
with discard flag.";
286+
}
287+
273288
leaf decapsulate-gre {
274289
type boolean;
275290
default false;

release/models/policy/openconfig-routing-policy.yang

Lines changed: 60 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -92,7 +92,13 @@ module openconfig-routing-policy {
9292
default value for the default-(import|export)-policy leaf must be
9393
applied. See RFC6020 7.6.1 which applies to this model.";
9494

95-
oc-ext:openconfig-version "3.5.0";
95+
oc-ext:openconfig-version "3.6.0";
96+
97+
revision "2025-04-13" {
98+
description
99+
"Add additional security features.";
100+
reference "3.6.0";
101+
}
96102

97103
revision "2024-11-26" {
98104
description
@@ -717,6 +723,58 @@ module openconfig-routing-policy {
717723
}
718724
}
719725

726+
grouping static-condition-config {
727+
description
728+
"Configuration data for static condition";
729+
730+
leaf enable {
731+
type boolean;
732+
default false;
733+
description
734+
"Enable this filter.";
735+
}
736+
737+
leaf invert {
738+
type boolean;
739+
default false;
740+
description
741+
"If enabled, selects all non-static routes instead of all static routes.";
742+
}
743+
}
744+
745+
grouping static-condition-state {
746+
description
747+
"Operational state data for static condition";
748+
}
749+
750+
grouping static-condition-top {
751+
description
752+
"Top-level grouping for filter that matches static routes";
753+
754+
container match-static {
755+
description
756+
"Match static neigbors";
757+
758+
container config {
759+
description
760+
"Configuration data ";
761+
762+
uses static-condition-config;
763+
}
764+
765+
container state {
766+
767+
config false;
768+
769+
description
770+
"Operational state data ";
771+
772+
uses static-condition-config;
773+
uses static-condition-state;
774+
}
775+
}
776+
}
777+
720778
grouping tag-set-condition-config {
721779
description
722780
"Configuration data for tag-set condition statements";
@@ -776,6 +834,7 @@ module openconfig-routing-policy {
776834
uses prefix-set-condition-top;
777835
uses neighbor-set-condition-top;
778836
uses tag-set-condition-top;
837+
uses static-condition-top;
779838

780839
}
781840

0 commit comments

Comments
 (0)