SHARE
TWEET

Untitled

a guest Jul 16th, 2019 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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)
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top