From 6184d3f2058323c5b80eaf723b0af00c8d74785f Mon Sep 17 00:00:00 2001 From: Michael Edobor Date: Tue, 9 Aug 2022 14:08:45 +0100 Subject: [PATCH 1/3] #10 Add support for 'output' service policies --- show_run.ttp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/show_run.ttp b/show_run.ttp index 1b7b57f..c1318f2 100644 --- a/show_run.ttp +++ b/show_run.ttp @@ -16,6 +16,7 @@ interface {{ interface | _start_ }} {{ input_mac_acl | set(None) }} {{ output_mac_acl | set(None) }} {{ input_policy | set(None) }} +{{ output_policy | set(None) }} switchport mode {{ mode }} switchport trunk allowed vlan {{ vlan | _start_ | unrange(rangechar='-', joinchar=',' ) | split(',') }} switchport access vlan {{ vlan | _start_ }} @@ -32,6 +33,7 @@ interface {{ interface | _start_ }} mac access-group {{ input_mac_acl }} in mac access-group {{ output_mac_acl }} out service-policy input {{ input_policy }} + service-policy ouput {{ input_policy }} {{ pop | set(None) }} {{ symmetric | set(False) }} From c8b6fa75cc8a2d6f2799a0cbcbfe22de0b8ce131 Mon Sep 17 00:00:00 2001 From: Michael Edobor Date: Tue, 9 Aug 2022 14:10:21 +0100 Subject: [PATCH 2/3] #10 Add support for 'output' service policies - Correct --- show_run.ttp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/show_run.ttp b/show_run.ttp index c1318f2..18bdfd8 100644 --- a/show_run.ttp +++ b/show_run.ttp @@ -33,7 +33,7 @@ interface {{ interface | _start_ }} mac access-group {{ input_mac_acl }} in mac access-group {{ output_mac_acl }} out service-policy input {{ input_policy }} - service-policy ouput {{ input_policy }} + service-policy ouput {{ output_policy }} {{ pop | set(None) }} {{ symmetric | set(False) }} From da5e046ea0d5a6b4ed68334f063878f48f9c4d15 Mon Sep 17 00:00:00 2001 From: Michael Edobor Date: Tue, 9 Aug 2022 14:11:24 +0100 Subject: [PATCH 3/3] Correcting Errors with previous commits --- show_run.ttp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/show_run.ttp b/show_run.ttp index 18bdfd8..6628783 100644 --- a/show_run.ttp +++ b/show_run.ttp @@ -33,7 +33,7 @@ interface {{ interface | _start_ }} mac access-group {{ input_mac_acl }} in mac access-group {{ output_mac_acl }} out service-policy input {{ input_policy }} - service-policy ouput {{ output_policy }} + service-policy output {{ output_policy }} {{ pop | set(None) }} {{ symmetric | set(False) }}