Permalink
Browse files

cli: Add --graphics defaultMode

  • Loading branch information...
crobinso committed Feb 27, 2014
1 parent f67df11 commit b4e4f683761c55259bd5ed4b3c5549568d6147bb
Showing with 4 additions and 1 deletion.
  1. +1 −1 tests/xmlparse-xml/change-graphics-out.xml
  2. +1 −0 tests/xmlparse.py
  3. +1 −0 virtinst/cli.py
  4. +1 −0 virtinst/devicegraphics.py
@@ -31,7 +31,7 @@
<graphics type="vnc" autoport="no">
<listen type="network" network="mynewnet"/>
</graphics>
- <graphics type="spice" passwd="newpass" port="6000" tlsPort="6001" listen="1.2.3.4" passwdValidTo="2011-01-07T19:08:00" connected="disconnect">
+ <graphics type="spice" passwd="newpass" port="6000" tlsPort="6001" listen="1.2.3.4" passwdValidTo="2011-01-07T19:08:00" connected="disconnect" defaultMode="secure">
<listen type="address" address="1.2.3.4"/>
<channel name="inputs" mode="secure"/>
<channel name="main" mode="any"/>
View
@@ -559,6 +559,7 @@ def testAlterGraphics(self):
check("channel_cursor_mode", "any", "any")
check("channel_playback_mode", "any", "insecure")
check("passwdValidTo", "2010-04-09T15:51:00", "2011-01-07T19:08:00")
+ check("defaultMode", None, "secure")
self._alter_compare(guest.get_xml_config(), outfile)
View
@@ -1810,6 +1810,7 @@ def set_type_cb(opts, inst, cliname, val):
self.set_param("passwd", "password")
self.set_param("passwdValidTo", "passwordvalidto")
self.set_param("connected", "connected")
+ self.set_param("defaultMode", "defaultMode")
def _parse(self, opts, inst):
if opts.fullopts == "none":
@@ -204,6 +204,7 @@ def _set_listen(self, val):
passwdValidTo = XMLProperty("./@passwdValidTo")
socket = XMLProperty("./@socket")
connected = XMLProperty("./@connected")
+ defaultMode = XMLProperty("./@defaultMode")
listens = XMLChildProperty(_GraphicsListen)
def remove_listen(self, obj):

0 comments on commit b4e4f68

Please sign in to comment.