The code:
but the output from the cisco router:
The cisco devnet always-on devices have been used for this purpose. And this is also the reason of the unexpected behaviour. The solution is rather to reserve your own sandbox devices, so that you have a full control of the configuration.