The network executive who oversees production of Bravo’s “Top Chef” testified yesterday that a top lieutenant of Mayor Martin J. Walsh pressured him to hire unwanted Teamsters to drive trucks, saying the famously pro-labor Democrat was in an “uncomfortable situation” for having guest-starred on the nonunion reality show.

“At one point he asked if I could take the mayor out of the show. I said that wasn’t possible,” David G. O’Connell, executive vice president of production management for NBC Universal, said of Kenneth Brissette, director of the Mayor’s Office of Tourism, Sports and Entertainment.

“He kept reiterating that this would all go away if we just made a deal,” O’Connell said. “I kept saying, no, it’s not going to happen.”

Laughing, O’Connell said he offered to pay members of Teamsters Local 25 “just to go away.”

Walsh spokeswoman Laura Oggeri declined to comment on O’Connell’s claims. Two years ago, Walsh’s office issued a statement that read, “­Mayor Walsh was fully supportive of the ‘Top Chef’ filming and was happy to participate in the show.”

O’Connell’s explosive testimony in the federal extortion trial of Teamsters Daniel Redmond, John Fidler, Robert Cafarelli and Michael Ross resumes this morning before U.S. District Court Judge Douglas P. Woodlock.

O’Connell said he was given a heads-up by “Top Chef” producer Elida “Ellie” Carbajal that he might be getting a call in Los Angeles from Brissette. In June 2014, Carbajal was in Boston filming for the cooking competition’s upcoming 12th season. Carbajal had also been trying to find out why Brissette was withholding permits for scheduled location shoots around town, she said yesterday.

“The Teamsters had been sniffing around and wanted to make a deal with us,” O’Connell said. “It’s a nonunion show and we were fully staffed at that point.”

Four days before, prosecutors say, the accused Teamsters descended on a “Top Chef” shoot in Milton, physically threatening the crew and assailing them and diners with racist, sexist, ethnic and homophobic slurs, O’Connell said Brissette called him.

“The purpose of the call was to get me to make a deal with the union,” O’Connell said. “He mentioned that he heard there was going to be a picket … He explained it was an uncomfortable situation for the mayor.”

Brissette, who is not charged in the Teamsters case, is facing an extortion indictment in a separate 2014 labor dispute involving the “Boston Calling” music festival.

Carbajal, one of the alleged victims of the Teamsters’ taunts, broke down crying on the witness stand yesterday recalling the encounter and how she and a security guard held a restaurant door shut when Teamsters tried to rush it.

“I was scared,” she said. “I couldn’t believe they were doing this. These were grown men and they were saying such awful things to me and the crew.”

Carbajal testified she asked the show’s crew to start filming what was going on with their cellphones. “They were saying horrible things,” she said. “I wanted to make sure we had video of it.”

She is heard on one video recorded by an executive producer — which was shown to the jury yesterday — telling Redmond, “Your momma would be so proud” as he calls Carbajal a “(expletive) towel head.”

Prior to the blowup, Brissette “had been holding our permits,” Carbajal testified. “He basically wanted us to come to an agreement with the Teamsters.”

Cafarelli’s attorney Carmine Lepore asked Carbajal if Brissette had told her he messed up putting the mayor on a nonunion show because it “would be bad publicity for the city.”

“Correct,” she said.