@@ -2,23 +2,28 @@ resource "iosxe_logging" "logging" {
22 for_each = { for device in local . devices : device . name => device if try (local. device_config [device . name ]. logging , null ) != null || try (local. defaults . iosxe . configuration . logging , null ) != null }
33 device = each. value . name
44
5- monitor_severity = try (local. device_config [each . value . name ]. logging . monitor_severity , local. defaults . iosxe . configuration . logging . monitor_severity , null )
6- buffered_size = try (local. device_config [each . value . name ]. logging . buffered_size , local. defaults . iosxe . configuration . logging . buffered_size , null )
7- buffered_severity = try (local. device_config [each . value . name ]. logging . buffered_severity , local. defaults . iosxe . configuration . logging . buffered_severity , null )
8- console = try (local. device_config [each . value . name ]. logging . console , local. defaults . iosxe . configuration . logging . console , null )
9- console_severity = try (local. device_config [each . value . name ]. logging . console_severity , local. defaults . iosxe . configuration . logging . console_severity , null )
10- facility = try (local. device_config [each . value . name ]. logging . facility , local. defaults . iosxe . configuration . logging . facility , null )
11- history_size = try (local. device_config [each . value . name ]. logging . history_size , local. defaults . iosxe . configuration . logging . history_size , null )
12- history_severity = try (local. device_config [each . value . name ]. logging . history_severity , local. defaults . iosxe . configuration . logging . history_severity , null )
13- trap = try (local. device_config [each . value . name ]. logging . trap , local. defaults . iosxe . configuration . logging . trap , null )
14- trap_severity = try (local. device_config [each . value . name ]. logging . trap_severity , local. defaults . iosxe . configuration . logging . trap_severity , null )
15- origin_id_type = try (local. device_config [each . value . name ]. logging . origin_id_type , local. defaults . iosxe . configuration . logging . origin_id_type , null )
16- origin_id_name = try (local. device_config [each . value . name ]. logging . origin_id_name , local. defaults . iosxe . configuration . logging . origin_id_name , null )
17- file_name = try (local. device_config [each . value . name ]. logging . file_name , local. defaults . iosxe . configuration . logging . file_name , null )
18- file_max_size = try (local. device_config [each . value . name ]. logging . file_max_size , local. defaults . iosxe . configuration . logging . file_max_size , null )
19- file_min_size = try (local. device_config [each . value . name ]. logging . file_min_size , local. defaults . iosxe . configuration . logging . file_min_size , null )
20- file_severity = try (local. device_config [each . value . name ]. logging . file_severity , local. defaults . iosxe . configuration . logging . file_severity , null )
21- source_interface = try (" ${ try (local. device_config [each . value . name ]. logging . source_interface_type , local. defaults . iosxe . configuration . logging . source_interface_type )} ${ try (trimprefix (local. device_config [each . value . name ]. logging . source_interface_id , " $string " ), local. defaults . iosxe . configuration . logging . source_interface_id )} " , null )
5+ monitor_severity = try (local. device_config [each . value . name ]. logging . monitor_severity , local. defaults . iosxe . configuration . logging . monitor_severity , null )
6+ buffered_size = try (local. device_config [each . value . name ]. logging . buffered_size , local. defaults . iosxe . configuration . logging . buffered_size , null )
7+ buffered_severity = try (local. device_config [each . value . name ]. logging . buffered_severity , local. defaults . iosxe . configuration . logging . buffered_severity , null )
8+ console = try (local. device_config [each . value . name ]. logging . console , local. defaults . iosxe . configuration . logging . console , null )
9+ console_severity = try (local. device_config [each . value . name ]. logging . console_severity , local. defaults . iosxe . configuration . logging . console_severity , null )
10+ facility = try (local. device_config [each . value . name ]. logging . facility , local. defaults . iosxe . configuration . logging . facility , null )
11+ history_size = try (local. device_config [each . value . name ]. logging . history_size , local. defaults . iosxe . configuration . logging . history_size , null )
12+ history_severity = try (local. device_config [each . value . name ]. logging . history_severity , local. defaults . iosxe . configuration . logging . history_severity , null )
13+ trap = try (local. device_config [each . value . name ]. logging . trap , local. defaults . iosxe . configuration . logging . trap , null )
14+ trap_severity = try (local. device_config [each . value . name ]. logging . trap_severity , local. defaults . iosxe . configuration . logging . trap_severity , null )
15+ origin_id_type = try (local. device_config [each . value . name ]. logging . origin_id_type , local. defaults . iosxe . configuration . logging . origin_id_type , null )
16+ origin_id_name = try (local. device_config [each . value . name ]. logging . origin_id_name , local. defaults . iosxe . configuration . logging . origin_id_name , null )
17+ file_name = try (local. device_config [each . value . name ]. logging . file_name , local. defaults . iosxe . configuration . logging . file_name , null )
18+ file_max_size = try (local. device_config [each . value . name ]. logging . file_max_size , local. defaults . iosxe . configuration . logging . file_max_size , null )
19+ file_min_size = try (local. device_config [each . value . name ]. logging . file_min_size , local. defaults . iosxe . configuration . logging . file_min_size , null )
20+ file_severity = try (local. device_config [each . value . name ]. logging . file_severity , local. defaults . iosxe . configuration . logging . file_severity , null )
21+ source_interface = try (" ${ try (local. device_config [each . value . name ]. logging . source_interface_type , local. defaults . iosxe . configuration . logging . source_interface_type )} ${ try (trimprefix (local. device_config [each . value . name ]. logging . source_interface_id , " $string " ), local. defaults . iosxe . configuration . logging . source_interface_id )} " , null )
22+ logging_count = try (local. device_config [each . value . name ]. logging . logging_count , local. defaults . iosxe . configuration . logging . logging_count , null )
23+ persistent_url = try (local. device_config [each . value . name ]. logging . persistent_url , local. defaults . iosxe . configuration . logging . persistent_url , null )
24+ persistent_size = try (local. device_config [each . value . name ]. logging . persistent_size , local. defaults . iosxe . configuration . logging . persistent_size , null )
25+ persistent_filesize = try (local. device_config [each . value . name ]. logging . persistent_filesize , local. defaults . iosxe . configuration . logging . persistent_filesize , null )
26+ rate_limit_all = try (local. device_config [each . value . name ]. logging . rate_limit_all , local. defaults . iosxe . configuration . logging . rate_limit_all , null )
2227
2328 source_interfaces_vrf = try (length (local. device_config [each . value . name ]. logging . source_interfaces_vrf ) == 0 , true ) ? null : [for s in local . device_config [each . value . name ]. logging . source_interfaces_vrf : {
2429 vrf = try (s. vrf , local. defaults . iosxe . configuration . logging . source_interfaces_vrf . vrf , null )
0 commit comments