-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2 from internet2/rnobrega
Rnobrega
- Loading branch information
Showing
3 changed files
with
63 additions
and
48 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,47 +1,53 @@ | ||
| routing-options { | ||
| flow { | ||
| route {{ flowRouteName }} { | ||
| match { | ||
| {%- if dstPrefix is defined and dstPrefix !=None %} | ||
| destination {{dstPrefix}}; | ||
| {%- endif %} | ||
| {%- if dstPort is defined and dstPort !=None %} | ||
| destination-port {{ dstPort }}; | ||
| {%- endif %} | ||
| {%- if dscp is defined and dscp !=None %} | ||
| dscp {{dscp}}; | ||
| {%- endif %} | ||
| {%- if fragment is defined and fragment !=None %} | ||
| fragment {{fragment}}; | ||
| {%- endif %} | ||
| {%- if icmp_code is defined and icmp_code !=None %} | ||
| icmp-code {{icmp_code}}; | ||
| {%- endif %} | ||
| {%- if icmp_type is defined and icmp_type !=None %} | ||
| icmp-type {{icmp_type}}; | ||
| {%- endif %} | ||
| {%- if packet_length is defined and packet_length !=None %} | ||
| packet-length {{packet_length}}; | ||
| {%- endif %} | ||
| {%- if port is defined and port !=None %} | ||
| port {{port}}; | ||
| {%- endif %} | ||
| {%- if protocol is defined and protocol !=None %} | ||
| protocol {{protocol}}; | ||
| {%- endif %} | ||
| {%- if srcPrefix is defined and srcPrefix !=None %} | ||
| source {{srcPrefix}}; | ||
| {%- endif %} | ||
| {%- if srcPort is defined and srcPortt !=None %} | ||
| source-port {{srcPort}}; | ||
| {%- endif %} | ||
| {%- if tcp_flags is defined and tcp_flags !=None %} | ||
| tcp-flags {{tcp_flags}}; | ||
| {%- endif %} | ||
| } | ||
| then { | ||
| {%- if vrf is defined %} | ||
| routing-instances { | ||
| {{vrf}} { | ||
| {%- endif %} | ||
| routing-options { | ||
| flow { | ||
| route {{ flowRouteName }} { | ||
| match { | ||
| {%- if dstPrefix is defined and dstPrefix !=None %} | ||
| destination {{dstPrefix}}; | ||
| {%- endif %} | ||
| {%- if dstPort is defined and dstPort !=None %} | ||
| destination-port {{ dstPort }}; | ||
| {%- endif %} | ||
| {%- if dscp is defined and dscp !=None %} | ||
| dscp {{dscp}}; | ||
| {%- endif %} | ||
| {%- if fragment is defined and fragment !=None %} | ||
| fragment {{fragment}}; | ||
| {%- endif %} | ||
| {%- if icmp_code is defined and icmp_code !=None %} | ||
| icmp-code {{icmp_code}}; | ||
| {%- endif %} | ||
| {%- if icmp_type is defined and icmp_type !=None %} | ||
| icmp-type {{icmp_type}}; | ||
| {%- endif %} | ||
| {%- if packet_length is defined and packet_length !=None %} | ||
| packet-length {{packet_length}}; | ||
| {%- endif %} | ||
| {%- if port is defined and port !=None %} | ||
| port {{port}}; | ||
| {%- endif %} | ||
| {%- if protocol is defined and protocol !=None %} | ||
| protocol {{protocol}}; | ||
| {%- endif %} | ||
| {%- if srcPrefix is defined and srcPrefix !=None %} | ||
| source {{srcPrefix}}; | ||
| {%- endif %} | ||
| {%- if srcPort is defined and srcPortt !=None %} | ||
| source-port {{srcPort}}; | ||
| {%- endif %} | ||
| {%- if tcp_flags is defined and tcp_flags !=None %} | ||
| tcp-flags {{tcp_flags}}; | ||
| {%- endif %} | ||
| } | ||
| then { | ||
| {{action}}; | ||
| } | ||
| } | ||
| {%- if vrf is defined %} | ||
| } | ||
| } | ||
| } | ||
| {%- endif %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters