|
9 | 9 |
|
10 | 10 | default_entries = {}
|
11 | 11 | stats_enabled = 1
|
| 12 | +nat_enabled = 1 |
12 | 13 |
|
13 | 14 | def port_to_pipe(port):
|
14 | 15 | return port >> 7
|
@@ -136,11 +137,10 @@ def populate_default_fabric_entries(client, sess_hdl, dev_tgt, ipv6_enabled=0,
|
136 | 137 | client.nat_flow_set_default_action_nop(sess_hdl, dev_tgt)
|
137 | 138 |
|
138 | 139 | def populate_default_entries(client, sess_hdl, dev_tgt, ipv6_enabled,
|
139 |
| - acl_enabled, tunnel_enabled, multicast_enabled): |
| 140 | + acl_enabled, tunnel_enabled, multicast_enabled, int_enabled): |
140 | 141 | index = 0
|
141 | 142 | action_spec = dc_set_config_parameters_action_spec_t(
|
142 |
| - action_enable_dod=0, |
143 |
| - action_switch_id=0) |
| 143 | + action_enable_dod=0) |
144 | 144 | client.switch_config_params_set_default_action_set_config_parameters(
|
145 | 145 | sess_hdl, dev_tgt, action_spec)
|
146 | 146 | client.validate_outer_ethernet_set_default_action_set_valid_outer_unicast_packet_untagged(
|
@@ -178,17 +178,17 @@ def populate_default_entries(client, sess_hdl, dev_tgt, ipv6_enabled,
|
178 | 178 | sess_hdl, dev_tgt)
|
179 | 179 | client.storm_control_set_default_action_nop(
|
180 | 180 | sess_hdl, dev_tgt)
|
181 |
| - client.storm_control_stats_set_default_action_nop( |
| 181 | + client.storm_control_stats_set_default_action_nop( |
182 | 182 | sess_hdl, dev_tgt)
|
183 |
| - meter_spec = dc_bytes_meter_spec_t( |
| 183 | + meter_spec = dc_bytes_meter_spec_t( |
184 | 184 | cir_kbps=0,
|
185 | 185 | cburst_kbits=0,
|
186 | 186 | pir_kbps=0,
|
187 | 187 | pburst_kbits=0,
|
188 | 188 | color_aware=False)
|
189 |
| - client.meter_index_set_default_action_nop( |
| 189 | + client.meter_index_set_default_action_nop( |
190 | 190 | sess_hdl, dev_tgt, meter_spec)
|
191 |
| - client.meter_action_set_default_action_meter_permit( |
| 191 | + client.meter_action_set_default_action_meter_permit( |
192 | 192 | sess_hdl, dev_tgt)
|
193 | 193 |
|
194 | 194 | client.vlan_decap_set_default_action_nop(
|
@@ -217,6 +217,14 @@ def populate_default_entries(client, sess_hdl, dev_tgt, ipv6_enabled,
|
217 | 217 | sess_hdl, dev_tgt)
|
218 | 218 | client.system_acl_set_default_action_nop(
|
219 | 219 | sess_hdl, dev_tgt)
|
| 220 | + client.adjust_lkp_fields_set_default_action_non_ip_lkp( |
| 221 | + sess_hdl, dev_tgt) |
| 222 | + match_spec = dc_adjust_lkp_fields_match_spec_t(ipv4_valid=1, ipv6_valid=0) |
| 223 | + client.adjust_lkp_fields_table_add_with_ipv4_lkp( |
| 224 | + sess_hdl, dev_tgt, match_spec) |
| 225 | + match_spec = dc_adjust_lkp_fields_match_spec_t(ipv4_valid=0, ipv6_valid=1) |
| 226 | + client.adjust_lkp_fields_table_add_with_ipv6_lkp( |
| 227 | + sess_hdl, dev_tgt, match_spec) |
220 | 228 | client.sflow_ingress_set_default_action_nop(
|
221 | 229 | sess_hdl, dev_tgt)
|
222 | 230 | client.sflow_ing_take_sample_set_default_action_nop(
|
@@ -282,6 +290,15 @@ def populate_default_entries(client, sess_hdl, dev_tgt, ipv6_enabled,
|
282 | 290 | client.ipv6_multicast_route_star_g_set_default_action_multicast_route_star_g_miss(
|
283 | 291 | sess_hdl, dev_tgt)
|
284 | 292 |
|
| 293 | + client.egress_qos_map_set_default_action_nop( |
| 294 | + sess_hdl, dev_tgt) |
| 295 | + client.ingress_qos_map_dscp_set_default_action_nop( |
| 296 | + sess_hdl, dev_tgt) |
| 297 | + client.ingress_qos_map_pcp_set_default_action_nop( |
| 298 | + sess_hdl, dev_tgt) |
| 299 | + client.traffic_class_set_default_action_nop( |
| 300 | + sess_hdl, dev_tgt) |
| 301 | + |
285 | 302 | if stats_enabled:
|
286 | 303 | client.ingress_bd_stats_set_default_action_update_ingress_bd_stats(
|
287 | 304 | sess_hdl, dev_tgt)
|
@@ -613,7 +630,6 @@ def program_ports(client, sess_hdl, dev_tgt, port_count):
|
613 | 630 | match_spec, action_spec)
|
614 | 631 | action_spec = dc_set_ingress_port_properties_action_spec_t(
|
615 | 632 | action_if_label=count,
|
616 |
| - action_exclusion_id=count, |
617 | 633 | action_qos_group=0,
|
618 | 634 | action_tc_qos_group=0,
|
619 | 635 | action_tc=0,
|
@@ -665,7 +681,6 @@ def program_emulation_ports(client, sess_hdl, dev_tgt, port_count):
|
665 | 681 |
|
666 | 682 | action_spec = dc_set_ingress_port_properties_action_spec_t(
|
667 | 683 | action_if_label=count,
|
668 |
| - action_exclusion_id=count, |
669 | 684 | action_qos_group=0,
|
670 | 685 | action_tc_qos_group=0,
|
671 | 686 | action_tc=0,
|
|
0 commit comments