Python + Frenetic = Pyretic

Pyretic is one member of the Frenetic family of SDN programming languages. As such Pyretic enables network programmers and operators to write succinct modular network applications by providing powerful abstractions. Pyretic is both a programmer-friendly domain-specific language embedded in Python and the runtime system that implements programs written in the Pyretic language on network switches.