summaryrefslogtreecommitdiffstats
path: root/formats/coroxml.py
blob: 142f388a7bc65fa08077231016501d7ce3cbe79c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
# -*- coding: UTF-8 -*-
# Copyright 2014 Red Hat, Inc.
# Part of clufter project
# Licensed under GPLv2+ (a copy included | http://gnu.org/licenses/gpl-2.0.txt)
"""Corosync executive configuration, XML representations"""
__author__ = "Jan Pokorný <jpokorny @at@ Red Hat .dot. com>"

from ..format import XML


class coroxml(XML):
    """Corosync executive configuration, XML version (corosync.xml)

    See corosync.xml(5).
    """
    # XMLFormat
    root = 'corosync'
    validator_specs = {
        XML.ETREE: ''  # XXX no RNG schema handy yet
    }


class coroxml_needle(coroxml):
    """Corosync (v2. needle) executive configuration, XML version"""
    validator_specs = {
        XML.ETREE: 'corosync.rng'
    }