Frankfurt: A German court on Friday sentenced a former soldier to five and a half years in prison for plotting a far-right attack on senior politicians while posing as a Syrian refugee.

"The accused is guilty of planning a serious act of violence endangering the state," presiding judge Christoph Koller said.