Foreign policy and national security have been key elements of the debate for both the Republican and Democratic parties in this year’s U.S. presidential campaign. GOP front-runner Donald Trump recently added a twist when he suggested in a Washington Post interview that, while NATO is “a good thing to have,” changes are needed because the U.S. is doing “all of the lifting” and its allies need to do more. He cited in particular the handling of the face-off with Russia over Ukraine. In a subsequent interview with The New York Times, he called NATO “obsolete.”

Just 49% of Americans had a favorable view of NATO in a Pew Research Center survey conducted in spring 2015, and those views have not changed much from previous years. Support includes 56% of Democrats but just 43% of the GOP. Notably, U.S. backing for the security alliance is the second lowest among eight NATO nations surveyed.

The NATO alliance commits each member to come to the collective defense of a member if it is attacked. During the confrontation with Russia over Ukraine last year, a majority of Americans (56%) were willing to fulfill this security commitment if Russia got into a serious military conflict with a NATO ally. But that finding masked a partisan divide: Nearly seven-in-ten Republicans (69%), but only 47% of Democrats, supported using force to aid a NATO ally attacked by Russia.

Last year’s survey found that the U.S. and Canada were the only countries in which more than half of respondents backed using military force if Russia got into a serious conflict with a NATO ally. At least half of Germans, French and Italians said their countries should not use military force to defend a NATO ally if attacked by Russia. When it came specifically to aiding Ukraine, half or fewer in every NATO country surveyed supported the idea of the alliance sending arms to the Ukrainians.

However, a median of 68% of people in NATO countries surveyed believed the U.S. would defend allies in such circumstances.

In his Washington Post interview, Trump singled out Germany in particular for criticism about not carrying its weight. Most Americans agree that Germany should boost its military contribution in the world. More than half (54%) think Berlin should play a more active military role in maintaining peace and stability in the world, while only 37% say it should limit its role. Democrats (60%) more than Republicans (51%) back a more active German military. Notably, given their country’s history, 69% of Germans want to limit their military’s role in world affairs.