Skip to content

Instantly share code, notes, and snippets.

View elbuit's full-sized avatar

Toni Cunyat elbuit

  • Universitat de Valencia
  • Tavernes de la Valldigna, Valencia (Spain)
View GitHub Profile

Migrate an old style script to a new vyos-1.x model

If you want to migrate from an old style template to a new one based in xml you will find this tedious. Firstly you have to create an xml interface definition by hand from a directory tree full of node.def files with configuration options, scripts calls, etc...

But vyos people thought about this time ago and developed an XML creator.

So let's see how to import an old style package to a new one model adopted in vyos-1x.