Skip to content

Commit 27b6ccf

Browse files
committed
Add attributes to interface resource and rename snmp server attributes
1 parent 8d6259f commit 27b6ccf

22 files changed

+1893
-866
lines changed

CHANGELOG.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
1+
## 0.2.7 (unreleased)
2+
3+
- Add `ipv4_verify_unicast_source_reachable_via` and `ipv4_access_group` attributes to `iosxr_interface` resource and data source
4+
- Add `ipv6_verify_unicast_source_reachable_via` and `ipv6_access_group` attributes to `iosxr_interface` resource and data source
5+
- BREAKING CHANGE: Rename traps related attributes of `iosxr_snmp_server` resource and data source to `traps_*`
6+
17
## 0.2.6
28

39
- Add `auto_cost` attributes to `iosxr_router_ospf` and `iosxr_router_ospf_vrf` resources and data sources

docs/data-sources/interface.md

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,14 +53,34 @@ data "iosxr_interface" "example" {
5353
- `flow_ipv6_ingress_monitor_samplers` (Attributes List) Specify a flow monitor and sampler for incoming packets (see [below for nested schema](#nestedatt--flow_ipv6_ingress_monitor_samplers))
5454
- `flow_ipv6_ingress_monitors` (Attributes List) Specify a flow monitor for packets (see [below for nested schema](#nestedatt--flow_ipv6_ingress_monitors))
5555
- `id` (String) The path of the retrieved object.
56+
- `ipv4_access_group_egress_acl` (String) Access-list name
57+
- `ipv4_access_group_egress_compress_level` (Number) Specify ACL compression in hardware
58+
- `ipv4_access_group_egress_hardware_count` (Boolean) Count packets in hardware
59+
- `ipv4_access_group_egress_interface_statistics` (Boolean) Per interface statistics in hardware
60+
- `ipv4_access_group_ingress_acl1` (String) Access-list name
61+
- `ipv4_access_group_ingress_compress_level` (Number) Specify ACL compression in hardware
62+
- `ipv4_access_group_ingress_hardware_count` (Boolean) Count packets in hardware
63+
- `ipv4_access_group_ingress_interface_statistics` (Boolean) Per interface statistics in hardware
5664
- `ipv4_address` (String) IP address
5765
- `ipv4_netmask` (String) IP subnet mask
5866
- `ipv4_point_to_point` (Boolean) Enable point-to-point handling for this interface.
67+
- `ipv4_verify_unicast_source_reachable_via_allow_default` (Boolean) Allow default route to match when checking source address
68+
- `ipv4_verify_unicast_source_reachable_via_allow_self_ping` (Boolean) Allow router to ping itself (opens vulnerability in verification)
69+
- `ipv4_verify_unicast_source_reachable_via_type` (String) Source reachable type
70+
- `ipv6_access_group_egress_acl1` (String) Access-list name
71+
- `ipv6_access_group_egress_compress_level` (Number) Specify ACL compression in hardware
72+
- `ipv6_access_group_egress_interface_statistics` (Boolean) Per interface statistics in hardware
73+
- `ipv6_access_group_ingress_acl1` (String) Access-list name
74+
- `ipv6_access_group_ingress_compress_level` (Number) Specify ACL compression in hardware
75+
- `ipv6_access_group_ingress_interface_statistics` (Boolean) Per interface statistics in hardware
5976
- `ipv6_addresses` (Attributes List) IPv6 address (see [below for nested schema](#nestedatt--ipv6_addresses))
6077
- `ipv6_autoconfig` (Boolean) Enable slaac on Mgmt interface
6178
- `ipv6_enable` (Boolean) Enable IPv6 on interface
6279
- `ipv6_link_local_address` (String) IPv6 address
6380
- `ipv6_link_local_zone` (String) IPv6 address zone
81+
- `ipv6_verify_unicast_source_reachable_via_allow_default` (Boolean) Allow default route to match when checking source address
82+
- `ipv6_verify_unicast_source_reachable_via_allow_self_ping` (Boolean) Allow router to ping itself (opens vulnerability in verification)
83+
- `ipv6_verify_unicast_source_reachable_via_type` (String) Source reachable type
6484
- `l2transport` (Boolean) l2transport sub-interface
6585
- `l2transport_encapsulation_dot1q_second_dot1q` (String) End of VLAN range
6686
- `l2transport_encapsulation_dot1q_vlan_id` (String) Single VLAN id or start of VLAN range

docs/data-sources/snmp_server.md

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -26,52 +26,52 @@ data "iosxr_snmp_server" "example" {
2626

2727
### Read-Only
2828

29-
- `bfd` (Boolean) Enable BFD traps
30-
- `bgp_bgp4_mib_updown` (Boolean) Enable CISCO-BGP4-MIB v2 up/down traps
31-
- `bgp_cbgp2_updown` (Boolean) Enable CISCO-BGP4-MIB v2 up/down traps
32-
- `bridgemib` (Boolean) Enable SNMP Trap for Bridge MIB
3329
- `communities` (Attributes List) The UNENCRYPTED (cleartext) community string (see [below for nested schema](#nestedatt--communities))
34-
- `config` (Boolean) Enable SNMP config traps
3530
- `contact` (String) Text for mib Object sysContact
36-
- `copy_complete` (Boolean) Enable CISCO-CONFIG-COPY-MIB ccCopyCompletion traps
37-
- `entity` (Boolean) Enable SNMP entity traps
38-
- `entity_redundancy_all` (Boolean) Enable all CISCO-ENTITY-REDUNDANCY-MIB traps
39-
- `entity_state_operstatus` (Boolean) Enable entity oper status enable notification
40-
- `ethernet_oam_events` (Boolean) Enable all OAM event traps
41-
- `fru_ctrl` (Boolean) Enable SNMP entity FRU control traps
4231
- `groups` (Attributes List) Name of the group (see [below for nested schema](#nestedatt--groups))
4332
- `id` (String) The path of the retrieved object.
44-
- `isis_adjacency_change` (String) isisAdjacencyChange
45-
- `isis_all` (String) Enable all IS-IS traps
46-
- `isis_area_mismatch` (String) isisAreaMismatch
47-
- `isis_attempt_to_exceed_max_sequence` (String) isisAttemptToExceedMaxSequence
48-
- `isis_authentication_failure` (String) isisAuthenticationFailure
49-
- `isis_authentication_type_failure` (String) isisAuthenticationTypeFailure
50-
- `isis_corrupted_lsp_detected` (String) isisCorruptedLSPDetected
51-
- `isis_database_overload` (String) isisDatabaseOverload
52-
- `isis_id_len_mismatch` (String) isisIDLenMismatch
53-
- `isis_lsp_error_detected` (String) isisLSPErrorDetected
54-
- `isis_lsp_too_large_to_propagate` (String) isisLSPTooLargeToPropagate
55-
- `isis_manual_address_drops` (String) isisManualAddressDrops
56-
- `isis_max_area_addresses_mismatch` (String) isisMaxAreaAddressesMismatch
57-
- `isis_orig_lsp_buff_size_mismatch` (String) isisOrigLSPBuffSizeMismatch
58-
- `isis_own_lsp_purge` (String) isisOwnLSPPurge
59-
- `isis_protocols_supported_mismatch` (String) isisProtocolsSupportedMismatch
60-
- `isis_rejected_adjacency` (String) isisRejectedAdjacency
61-
- `isis_sequence_number_skip` (String) isisSequenceNumberSkip
62-
- `isis_version_skew` (String) isisVersionSkew
63-
- `l2vpn_all` (Boolean) Enable all L2VPN traps
64-
- `l2vpn_vc_down` (Boolean) Enable VC down traps
65-
- `l2vpn_vc_up` (Boolean) Enable VC up traps
6633
- `location` (String) Text for mib Object sysLocation
67-
- `ntp` (Boolean) Enable SNMP Cisco Ntp traps
68-
- `power` (Boolean) Enable SNMP entity power traps
69-
- `rf` (Boolean) Enable SNMP RF-MIB traps
70-
- `sensor` (Boolean) Enable SNMP entity sensor traps
71-
- `system` (Boolean) Enable SNMP SYSTEMMIB-MIB traps
7234
- `trap_source_both` (String) Assign an interface for the source address of all traps
35+
- `traps_bfd` (Boolean) Enable BFD traps
36+
- `traps_bgp_bgp4_mib_updown` (Boolean) Enable CISCO-BGP4-MIB v2 up/down traps
37+
- `traps_bgp_cbgp2_updown` (Boolean) Enable CISCO-BGP4-MIB v2 up/down traps
38+
- `traps_bridgemib` (Boolean) Enable SNMP Trap for Bridge MIB
39+
- `traps_config` (Boolean) Enable SNMP config traps
40+
- `traps_copy_complete` (Boolean) Enable CISCO-CONFIG-COPY-MIB ccCopyCompletion traps
41+
- `traps_entity` (Boolean) Enable SNMP entity traps
42+
- `traps_entity_redundancy_all` (Boolean) Enable all CISCO-ENTITY-REDUNDANCY-MIB traps
43+
- `traps_entity_state_operstatus` (Boolean) Enable entity oper status enable notification
44+
- `traps_ethernet_oam_events` (Boolean) Enable all OAM event traps
45+
- `traps_fru_ctrl` (Boolean) Enable SNMP entity FRU control traps
46+
- `traps_isis_adjacency_change` (String) isisAdjacencyChange
47+
- `traps_isis_all` (String) Enable all IS-IS traps
48+
- `traps_isis_area_mismatch` (String) isisAreaMismatch
49+
- `traps_isis_attempt_to_exceed_max_sequence` (String) isisAttemptToExceedMaxSequence
50+
- `traps_isis_authentication_failure` (String) isisAuthenticationFailure
51+
- `traps_isis_authentication_type_failure` (String) isisAuthenticationTypeFailure
52+
- `traps_isis_corrupted_lsp_detected` (String) isisCorruptedLSPDetected
53+
- `traps_isis_database_overload` (String) isisDatabaseOverload
54+
- `traps_isis_id_len_mismatch` (String) isisIDLenMismatch
55+
- `traps_isis_lsp_error_detected` (String) isisLSPErrorDetected
56+
- `traps_isis_lsp_too_large_to_propagate` (String) isisLSPTooLargeToPropagate
57+
- `traps_isis_manual_address_drops` (String) isisManualAddressDrops
58+
- `traps_isis_max_area_addresses_mismatch` (String) isisMaxAreaAddressesMismatch
59+
- `traps_isis_orig_lsp_buff_size_mismatch` (String) isisOrigLSPBuffSizeMismatch
60+
- `traps_isis_own_lsp_purge` (String) isisOwnLSPPurge
61+
- `traps_isis_protocols_supported_mismatch` (String) isisProtocolsSupportedMismatch
62+
- `traps_isis_rejected_adjacency` (String) isisRejectedAdjacency
63+
- `traps_isis_sequence_number_skip` (String) isisSequenceNumberSkip
64+
- `traps_isis_version_skew` (String) isisVersionSkew
65+
- `traps_l2vpn_all` (Boolean) Enable all L2VPN traps
66+
- `traps_l2vpn_vc_down` (Boolean) Enable VC down traps
67+
- `traps_l2vpn_vc_up` (Boolean) Enable VC up traps
68+
- `traps_ntp` (Boolean) Enable SNMP Cisco Ntp traps
69+
- `traps_power` (Boolean) Enable SNMP entity power traps
70+
- `traps_rf` (Boolean) Enable SNMP RF-MIB traps
71+
- `traps_sensor` (Boolean) Enable SNMP entity sensor traps
7372
- `traps_snmp_linkdown` (Boolean) Enable SNMPv2-MIB linDownp traps
7473
- `traps_snmp_linkup` (Boolean) Enable SNMPv2-MIB linkUp traps
74+
- `traps_system` (Boolean) Enable SNMP SYSTEMMIB-MIB traps
7575
- `users` (Attributes List) Name of the user (see [below for nested schema](#nestedatt--users))
7676

7777
<a id="nestedatt--communities"></a>

docs/guides/changelog.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,12 @@ description: |-
77

88
# Changelog
99

10+
## 0.2.7 (unreleased)
11+
12+
- Add `ipv4_verify_unicast_source_reachable_via` and `ipv4_access_group` attributes to `iosxr_interface` resource and data source
13+
- Add `ipv6_verify_unicast_source_reachable_via` and `ipv6_access_group` attributes to `iosxr_interface` resource and data source
14+
- BREAKING CHANGE: Rename traps related attributes of `iosxr_snmp_server` resource and data source to `traps_*`
15+
1016
## 0.2.6
1117

1218
- Add `auto_cost` attributes to `iosxr_router_ospf` and `iosxr_router_ospf_vrf` resources and data sources

docs/resources/interface.md

Lines changed: 58 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -30,18 +30,38 @@ resource "iosxr_interface" "example" {
3030
name = "PMAP-OUT"
3131
}
3232
]
33-
shutdown = true
34-
mtu = 9000
35-
bandwidth = 100000
36-
description = "My Interface Description"
37-
load_interval = 30
38-
vrf = "VRF1"
39-
ipv4_address = "1.1.1.1"
40-
ipv4_netmask = "255.255.255.0"
41-
ipv6_link_local_address = "fe80::1"
42-
ipv6_link_local_zone = "0"
43-
ipv6_autoconfig = false
44-
ipv6_enable = true
33+
shutdown = true
34+
mtu = 9000
35+
bandwidth = 100000
36+
description = "My Interface Description"
37+
load_interval = 30
38+
vrf = "VRF1"
39+
ipv4_address = "1.1.1.1"
40+
ipv4_netmask = "255.255.255.0"
41+
ipv4_verify_unicast_source_reachable_via_type = "any"
42+
ipv4_verify_unicast_source_reachable_via_allow_self_ping = true
43+
ipv4_verify_unicast_source_reachable_via_allow_default = false
44+
ipv4_access_group_ingress_acl1 = "ACL1"
45+
ipv4_access_group_ingress_hardware_count = true
46+
ipv4_access_group_ingress_interface_statistics = true
47+
ipv4_access_group_ingress_compress_level = 0
48+
ipv4_access_group_egress_acl = "ACL1"
49+
ipv4_access_group_egress_hardware_count = true
50+
ipv4_access_group_egress_interface_statistics = true
51+
ipv4_access_group_egress_compress_level = 0
52+
ipv6_verify_unicast_source_reachable_via_type = "any"
53+
ipv6_verify_unicast_source_reachable_via_allow_self_ping = true
54+
ipv6_verify_unicast_source_reachable_via_allow_default = false
55+
ipv6_access_group_ingress_acl1 = "ACL2"
56+
ipv6_access_group_ingress_interface_statistics = true
57+
ipv6_access_group_ingress_compress_level = 0
58+
ipv6_access_group_egress_acl1 = "ACL2"
59+
ipv6_access_group_egress_interface_statistics = true
60+
ipv6_access_group_egress_compress_level = 0
61+
ipv6_link_local_address = "fe80::1"
62+
ipv6_link_local_zone = "0"
63+
ipv6_autoconfig = false
64+
ipv6_enable = true
4565
ipv6_addresses = [
4666
{
4767
address = "2001::1"
@@ -94,14 +114,40 @@ resource "iosxr_interface" "example" {
94114
- `flow_ipv6_egress_monitors` (Attributes List) Specify a flow monitor for packets (see [below for nested schema](#nestedatt--flow_ipv6_egress_monitors))
95115
- `flow_ipv6_ingress_monitor_samplers` (Attributes List) Specify a flow monitor and sampler for incoming packets (see [below for nested schema](#nestedatt--flow_ipv6_ingress_monitor_samplers))
96116
- `flow_ipv6_ingress_monitors` (Attributes List) Specify a flow monitor for packets (see [below for nested schema](#nestedatt--flow_ipv6_ingress_monitors))
117+
- `ipv4_access_group_egress_acl` (String) Access-list name
118+
- `ipv4_access_group_egress_compress_level` (Number) Specify ACL compression in hardware
119+
- Range: `0`-`3`
120+
- `ipv4_access_group_egress_hardware_count` (Boolean) Count packets in hardware
121+
- `ipv4_access_group_egress_interface_statistics` (Boolean) Per interface statistics in hardware
122+
- `ipv4_access_group_ingress_acl1` (String) Access-list name
123+
- `ipv4_access_group_ingress_compress_level` (Number) Specify ACL compression in hardware
124+
- Range: `0`-`3`
125+
- `ipv4_access_group_ingress_hardware_count` (Boolean) Count packets in hardware
126+
- `ipv4_access_group_ingress_interface_statistics` (Boolean) Per interface statistics in hardware
97127
- `ipv4_address` (String) IP address
98128
- `ipv4_netmask` (String) IP subnet mask
99129
- `ipv4_point_to_point` (Boolean) Enable point-to-point handling for this interface.
130+
- `ipv4_verify_unicast_source_reachable_via_allow_default` (Boolean) Allow default route to match when checking source address
131+
- `ipv4_verify_unicast_source_reachable_via_allow_self_ping` (Boolean) Allow router to ping itself (opens vulnerability in verification)
132+
- `ipv4_verify_unicast_source_reachable_via_type` (String) Source reachable type
133+
- Choices: `any`, `rx`
134+
- `ipv6_access_group_egress_acl1` (String) Access-list name
135+
- `ipv6_access_group_egress_compress_level` (Number) Specify ACL compression in hardware
136+
- Range: `0`-`3`
137+
- `ipv6_access_group_egress_interface_statistics` (Boolean) Per interface statistics in hardware
138+
- `ipv6_access_group_ingress_acl1` (String) Access-list name
139+
- `ipv6_access_group_ingress_compress_level` (Number) Specify ACL compression in hardware
140+
- Range: `0`-`3`
141+
- `ipv6_access_group_ingress_interface_statistics` (Boolean) Per interface statistics in hardware
100142
- `ipv6_addresses` (Attributes List) IPv6 address (see [below for nested schema](#nestedatt--ipv6_addresses))
101143
- `ipv6_autoconfig` (Boolean) Enable slaac on Mgmt interface
102144
- `ipv6_enable` (Boolean) Enable IPv6 on interface
103145
- `ipv6_link_local_address` (String) IPv6 address
104146
- `ipv6_link_local_zone` (String) IPv6 address zone
147+
- `ipv6_verify_unicast_source_reachable_via_allow_default` (Boolean) Allow default route to match when checking source address
148+
- `ipv6_verify_unicast_source_reachable_via_allow_self_ping` (Boolean) Allow router to ping itself (opens vulnerability in verification)
149+
- `ipv6_verify_unicast_source_reachable_via_type` (String) Source reachable type
150+
- Choices: `any`, `rx`
105151
- `l2transport` (Boolean) l2transport sub-interface
106152
- `l2transport_encapsulation_dot1q_second_dot1q` (String) End of VLAN range
107153
- `l2transport_encapsulation_dot1q_vlan_id` (String) Single VLAN id or start of VLAN range

0 commit comments

Comments
 (0)