Revision 7d81bb8b lib/ht.py

b/lib/ht.py
565 565
             Comment("Deprecated")(TListOf(old_mod_item_fn)))
566 566

  
567 567

  
568
def TSetSnapParams(fn):
569
  return  TListOf(TItems([TOr(TInt, TString), fn]))
570

  
571

  
568 572
TINicParams = \
569 573
    Comment("NIC parameters")(TDictOf(TElemOf(constants.INIC_PARAMS),
570 574
                                      TMaybe(TString)))
......
573 577
    Comment("Disk parameters")(TDictOf(TNonEmptyString,
574 578
                                       TOr(TNonEmptyString, TInt)))
575 579

  
580
TISnapParams = \
581
    Comment("Snapshot parameters")(
582
      TDictOf(TElemOf(constants.IDISK_SNAPSHOT_NAME),
583
              TNonEmptyString))
584

  
576 585
THypervisor = TElemOf(constants.HYPER_TYPES)
577 586
TMigrationMode = TElemOf(constants.HT_MIGRATION_MODES)
578 587
TNICMode = TElemOf(constants.NIC_VALID_MODES)

Also available in: Unified diff