def add_entry_to_group(self, table_name, match_key, match_key_types, grp_handle): self.client.bm_mt_indirect_ws_add_entry( 0, table_name=table_name, match_key=runtimedata.parse_lpm_match_key(match_key, match_key_types), grp_handle=grp_handle, options=BmAddEntryOptions(priority=0))
def table_add(self, table, match_key, match_key_types, action, runtime_data, runtime_data_types): message = self.client.bm_mt_add_entry( 0, table, runtimedata.parse_lpm_match_key(match_key, match_key_types), action, runtimedata.parse_runtime_data(runtime_data, runtime_data_types), BmAddEntryOptions(priority=0)) return message