Advertisement
Guest User

Untitled

a guest
Jul 16th, 2019
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.29 KB | None | 0 0
  1. from kvirt.config import Kconfig
  2. name = "sat6.brisa.pt"
  3. network = "brisa.pt"
  4. conn = Kconfig().k.conn
  5. network = conn.networkLookupByName(network)
  6. for num in [10, 100, 110]:
  7.     entry = '<host ip="192.168.101.%s"><hostname>%s</hostname>' % (num, name)
  8.     network.update(2, 10, 0, entry, 1)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement