Skip to content

Commit

Permalink
moved custom_template and tcam_profile into host4
Browse files Browse the repository at this point in the history
  • Loading branch information
Mahesh Kumar authored and Mahesh Kumar committed Nov 14, 2024
1 parent ebe74e9 commit d335a43
Show file tree
Hide file tree
Showing 7 changed files with 287 additions and 290 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,6 @@
- [Monitor Connectivity Device Configuration](#monitor-connectivity-device-configuration)
- [Monitor Layer 1 Logging](#monitor-layer-1-logging)
- [Monitor Layer 1 Device Configuration](#monitor-layer-1-device-configuration)
- [Hardware TCAM Profile](#hardware-tcam-profile)
- [Custom TCAM Profiles](#custom-tcam-profiles)
- [Hardware TCAM Device Configuration](#hardware-tcam-device-configuration)
- [Link Tracking](#link-tracking)
- [MLAG](#mlag)
- [MLAG Summary](#mlag-summary)
Expand Down Expand Up @@ -248,10 +245,6 @@
- [Interface Groups](#interface-groups)
- [Maintenance](#maintenance)
- [EOS CLI Device Configuration](#eos-cli-device-configuration)
- [Custom Templates](#custom-templates)
- [Configuration Generated by `custom_templates/test-template-1.j2`](#configuration-generated-by-custom_templatestest-template-1j2)
- [Configuration Generated by `custom_templates/test-template-2.j2`](#configuration-generated-by-custom_templatestest-template-2j2)
- [Configuration Generated by `custom_templates/test-template-3.j2`](#configuration-generated-by-custom_templatestest-template-3j2)

## Management

Expand Down Expand Up @@ -2264,137 +2257,6 @@ monitor layer1
logging mac fault
```

## Hardware TCAM Profile

TCAM profile **`traffic_policy`** is active

### Custom TCAM Profiles

Following TCAM profiles are configured on device:

- Profile Name: `traffic_policy`
- Profile Name: `MY_TCAM_PROFILE`

### Hardware TCAM Device Configuration

```eos
!
hardware tcam
profile MY_TCAM_PROFILE
source flash:/TCAM_PROFILES/MY_TCAM_PROFILE.conf
!
profile traffic_policy
feature acl port mac
sequence 55
key size limit 160
key field dst-mac ether-type src-mac
action count drop
packet ipv4 forwarding bridged
packet ipv4 forwarding routed
packet ipv4 forwarding routed multicast
packet ipv4 mpls ipv4 forwarding mpls decap
packet ipv4 mpls ipv6 forwarding mpls decap
packet ipv4 non-vxlan forwarding routed decap
packet ipv4 vxlan forwarding bridged decap
packet ipv6 forwarding bridged
packet ipv6 forwarding routed
packet ipv6 forwarding routed decap
packet ipv6 forwarding routed multicast
packet ipv6 ipv6 forwarding routed decap
packet mpls forwarding bridged decap
packet mpls ipv4 forwarding mpls
packet mpls ipv6 forwarding mpls
packet mpls non-ip forwarding mpls
packet non-ip forwarding bridged
!
feature forwarding-destination mpls
sequence 100
!
feature mirror ip
sequence 80
key size limit 160
key field dscp dst-ip ip-frag ip-protocol l4-dst-port l4-ops l4-src-port src-ip tcp-control
action count mirror set-policer
packet ipv4 forwarding bridged
packet ipv4 forwarding routed
packet ipv4 forwarding routed multicast
packet ipv4 non-vxlan forwarding routed decap
!
feature mpls
sequence 5
key size limit 160
action drop redirect set-ecn
packet ipv4 mpls ipv4 forwarding mpls decap
packet ipv4 mpls ipv6 forwarding mpls decap
packet mpls ipv4 forwarding mpls
packet mpls ipv6 forwarding mpls
packet mpls non-ip forwarding mpls
!
feature pbr ip
sequence 60
key size limit 160
key field dscp dst-ip ip-frag ip-protocol l4-dst-port l4-ops-18b l4-src-port src-ip tcp-control
action count redirect
packet ipv4 forwarding routed
packet ipv4 mpls ipv4 forwarding mpls decap
packet ipv4 mpls ipv6 forwarding mpls decap
packet ipv4 non-vxlan forwarding routed decap
packet ipv4 vxlan forwarding bridged decap
!
feature pbr ipv6
sequence 30
key field dst-ipv6 ipv6-next-header l4-dst-port l4-src-port src-ipv6-high src-ipv6-low tcp-control
action count redirect
packet ipv6 forwarding routed
!
feature pbr mpls
sequence 65
key size limit 160
key field mpls-inner-ip-tos
action count drop redirect
packet mpls ipv4 forwarding mpls
packet mpls ipv6 forwarding mpls
packet mpls non-ip forwarding mpls
!
feature qos ip
sequence 75
key size limit 160
key field dscp dst-ip ip-frag ip-protocol l4-dst-port l4-ops l4-src-port src-ip tcp-control
action set-dscp set-policer set-tc
packet ipv4 forwarding routed
packet ipv4 forwarding routed multicast
packet ipv4 mpls ipv4 forwarding mpls decap
packet ipv4 mpls ipv6 forwarding mpls decap
packet ipv4 non-vxlan forwarding routed decap
!
feature qos ipv6
sequence 70
key field dst-ipv6 ipv6-next-header ipv6-traffic-class l4-dst-port l4-src-port src-ipv6-high src-ipv6-low
action set-dscp set-policer set-tc
packet ipv6 forwarding routed
!
feature traffic-policy port ipv4
sequence 45
key size limit 160
key field dscp dst-ip-label icmp-type-code ip-frag ip-fragment-offset ip-length ip-protocol l4-dst-port l4-src-port src-ip-label tcp-control ttl
action count drop log set-dscp set-tc
packet ipv4 forwarding routed
!
feature traffic-policy port ipv6
sequence 25
key field dst-ipv6-label hop-limit icmp-type-code ipv6-length ipv6-next-header ipv6-traffic-class l4-dst-port l4-src-port src-ipv6-label tcp-control
action count drop log set-dscp set-tc
packet ipv6 forwarding routed
!
feature tunnel vxlan
sequence 50
key size limit 160
packet ipv4 vxlan eth ipv4 forwarding routed decap
packet ipv4 vxlan forwarding bridged decap
!
system profile traffic_policy
```

### Link Tracking

#### Link Tracking Groups Summary
Expand Down Expand Up @@ -9510,28 +9372,3 @@ interface Loopback1000
description Interface created with eos_cli on device level
```

## Custom Templates

### Configuration Generated by `custom_templates/test-template-1.j2`

```eos
!
test-custom-template-with-logic-1
```

### Configuration Generated by `custom_templates/test-template-2.j2`

```eos
!
test-custom-template-no-logic-2
```

### Configuration Generated by `custom_templates/test-template-3.j2`

```eos
!
test-custom-template-with-logic-3
```
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,13 @@
- [Management Interfaces](#management-interfaces)
- [Authentication](#authentication)
- [TACACS Servers](#tacacs-servers)
- [Hardware TCAM Profile](#hardware-tcam-profile)
- [Custom TCAM Profiles](#custom-tcam-profiles)
- [Hardware TCAM Device Configuration](#hardware-tcam-device-configuration)
- [Custom Templates](#custom-templates)
- [Configuration Generated by `custom_templates/test-template-1.j2`](#configuration-generated-by-custom_templatestest-template-1j2)
- [Configuration Generated by `custom_templates/test-template-2.j2`](#configuration-generated-by-custom_templatestest-template-2j2)
- [Configuration Generated by `custom_templates/test-template-3.j2`](#configuration-generated-by-custom_templatestest-template-3j2)

## Management

Expand Down Expand Up @@ -51,3 +58,159 @@ interface Management1
!
tacacs-server host 10.10.10.158 key 7 <removed>
```

## Hardware TCAM Profile

TCAM profile **`traffic_policy`** is active

### Custom TCAM Profiles

Following TCAM profiles are configured on device:

- Profile Name: `traffic_policy`
- Profile Name: `MY_TCAM_PROFILE`

### Hardware TCAM Device Configuration

```eos
!
hardware tcam
profile MY_TCAM_PROFILE
source flash:/TCAM_PROFILES/MY_TCAM_PROFILE.conf
!
profile traffic_policy
feature acl port mac
sequence 55
key size limit 160
key field dst-mac ether-type src-mac
action count drop
packet ipv4 forwarding bridged
packet ipv4 forwarding routed
packet ipv4 forwarding routed multicast
packet ipv4 mpls ipv4 forwarding mpls decap
packet ipv4 mpls ipv6 forwarding mpls decap
packet ipv4 non-vxlan forwarding routed decap
packet ipv4 vxlan forwarding bridged decap
packet ipv6 forwarding bridged
packet ipv6 forwarding routed
packet ipv6 forwarding routed decap
packet ipv6 forwarding routed multicast
packet ipv6 ipv6 forwarding routed decap
packet mpls forwarding bridged decap
packet mpls ipv4 forwarding mpls
packet mpls ipv6 forwarding mpls
packet mpls non-ip forwarding mpls
packet non-ip forwarding bridged
!
feature forwarding-destination mpls
sequence 100
!
feature mirror ip
sequence 80
key size limit 160
key field dscp dst-ip ip-frag ip-protocol l4-dst-port l4-ops l4-src-port src-ip tcp-control
action count mirror set-policer
packet ipv4 forwarding bridged
packet ipv4 forwarding routed
packet ipv4 forwarding routed multicast
packet ipv4 non-vxlan forwarding routed decap
!
feature mpls
sequence 5
key size limit 160
action drop redirect set-ecn
packet ipv4 mpls ipv4 forwarding mpls decap
packet ipv4 mpls ipv6 forwarding mpls decap
packet mpls ipv4 forwarding mpls
packet mpls ipv6 forwarding mpls
packet mpls non-ip forwarding mpls
!
feature pbr ip
sequence 60
key size limit 160
key field dscp dst-ip ip-frag ip-protocol l4-dst-port l4-ops-18b l4-src-port src-ip tcp-control
action count redirect
packet ipv4 forwarding routed
packet ipv4 mpls ipv4 forwarding mpls decap
packet ipv4 mpls ipv6 forwarding mpls decap
packet ipv4 non-vxlan forwarding routed decap
packet ipv4 vxlan forwarding bridged decap
!
feature pbr ipv6
sequence 30
key field dst-ipv6 ipv6-next-header l4-dst-port l4-src-port src-ipv6-high src-ipv6-low tcp-control
action count redirect
packet ipv6 forwarding routed
!
feature pbr mpls
sequence 65
key size limit 160
key field mpls-inner-ip-tos
action count drop redirect
packet mpls ipv4 forwarding mpls
packet mpls ipv6 forwarding mpls
packet mpls non-ip forwarding mpls
!
feature qos ip
sequence 75
key size limit 160
key field dscp dst-ip ip-frag ip-protocol l4-dst-port l4-ops l4-src-port src-ip tcp-control
action set-dscp set-policer set-tc
packet ipv4 forwarding routed
packet ipv4 forwarding routed multicast
packet ipv4 mpls ipv4 forwarding mpls decap
packet ipv4 mpls ipv6 forwarding mpls decap
packet ipv4 non-vxlan forwarding routed decap
!
feature qos ipv6
sequence 70
key field dst-ipv6 ipv6-next-header ipv6-traffic-class l4-dst-port l4-src-port src-ipv6-high src-ipv6-low
action set-dscp set-policer set-tc
packet ipv6 forwarding routed
!
feature traffic-policy port ipv4
sequence 45
key size limit 160
key field dscp dst-ip-label icmp-type-code ip-frag ip-fragment-offset ip-length ip-protocol l4-dst-port l4-src-port src-ip-label tcp-control ttl
action count drop log set-dscp set-tc
packet ipv4 forwarding routed
!
feature traffic-policy port ipv6
sequence 25
key field dst-ipv6-label hop-limit icmp-type-code ipv6-length ipv6-next-header ipv6-traffic-class l4-dst-port l4-src-port src-ipv6-label tcp-control
action count drop log set-dscp set-tc
packet ipv6 forwarding routed
!
feature tunnel vxlan
sequence 50
key size limit 160
packet ipv4 vxlan eth ipv4 forwarding routed decap
packet ipv4 vxlan forwarding bridged decap
!
system profile traffic_policy
```

## Custom Templates

### Configuration Generated by `custom_templates/test-template-1.j2`

```eos
!
test-custom-template-with-logic-1
```

### Configuration Generated by `custom_templates/test-template-2.j2`

```eos
!
test-custom-template-no-logic-2
```

### Configuration Generated by `custom_templates/test-template-3.j2`

```eos
!
test-custom-template-with-logic-3
```
Loading

0 comments on commit d335a43

Please sign in to comment.