From b8786cd1044b117e4629689efa7e632b0d47d271 Mon Sep 17 00:00:00 2001 From: Viacheslav Hletenko Date: Tue, 16 Aug 2022 11:41:29 +0000 Subject: trafic-policy: T4618: Set correct priority for traffic-policy Traffic-policy should be exist before than we can attach it to an interface --- templates-skeleton/interface-templates/traffic-policy/in/node.def | 1 + templates-skeleton/interface-templates/traffic-policy/out/node.def | 1 + templates/traffic-policy/node.def | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/templates-skeleton/interface-templates/traffic-policy/in/node.def b/templates-skeleton/interface-templates/traffic-policy/in/node.def index 61cdc0a..77566f8 100644 --- a/templates-skeleton/interface-templates/traffic-policy/in/node.def +++ b/templates-skeleton/interface-templates/traffic-policy/in/node.def @@ -1,4 +1,5 @@ type: txt +priority: 620 help: Ingress traffic policy for interface allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy in update: /opt/vyatta/sbin/vyatta-qos.pl --update-interface $IFNAME in $VAR(@) diff --git a/templates-skeleton/interface-templates/traffic-policy/out/node.def b/templates-skeleton/interface-templates/traffic-policy/out/node.def index 37eaa5b..deb3e4e 100644 --- a/templates-skeleton/interface-templates/traffic-policy/out/node.def +++ b/templates-skeleton/interface-templates/traffic-policy/out/node.def @@ -1,4 +1,5 @@ type: txt +priority: 620 help: Egress traffic policy for interface allowed: /opt/vyatta/sbin/vyatta-qos.pl --list-policy out update: /opt/vyatta/sbin/vyatta-qos.pl --update-interface $IFNAME out $VAR(@) diff --git a/templates/traffic-policy/node.def b/templates/traffic-policy/node.def index 3a90e68..a655f7e 100644 --- a/templates/traffic-policy/node.def +++ b/templates/traffic-policy/node.def @@ -1,2 +1,2 @@ -priority: 900 +priority: 300 help: Quality of Service (QOS) policy type -- cgit v1.2.3