virttest.libvirt_xml.nwfilter_protocols package

Submodules

virttest.libvirt_xml.nwfilter_protocols.ah module

ah protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoMisc

class virttest.libvirt_xml.nwfilter_protocols.ah.Ah(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Ah xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Ah.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Ah attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender dstmacaddr: string, MAC address of destination dstmacmask: string, Mask applied to MAC address of destination srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED,INVALID or NONE ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
dstmacaddr
dstmacmask
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
srcmacmask
state
Ah.attrs
Ah.get_attr()[source]

Return ah attribute dict

Returns:None if no ah in xml, dict of ah’s attributes.
Ah.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.ah_ipv6 module

ah-ipv6 protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoMiscv6

class virttest.libvirt_xml.nwfilter_protocols.ah_ipv6.Ah_ipv6(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Ah_ipv6 xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Ah_ipv6.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Ah_ipv6 attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender dstmacaddr: string, MAC address of destination dstmacmask: string, Mask applied to MAC address of destination srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED,INVALID or NONE ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
dstmacaddr
dstmacmask
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
srcmacmask
state
Ah_ipv6.attrs
Ah_ipv6.get_attr()[source]

Return ah-ipv6 attribute dict

Returns:None if no ah-ipv6 in xml, dict of ah-ipv6’s attributes.
Ah_ipv6.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.all module

all protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoMisc

class virttest.libvirt_xml.nwfilter_protocols.all.All(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new All xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.All.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

All attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender dstmacaddr: string, MAC address of destination dstmacmask: string, Mask applied to MAC address of destination srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED,INVALID or NONE ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
dstmacaddr
dstmacmask
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
srcmacmask
state
All.attrs
All.get_attr()[source]

Return ‘all’ attribute dict

Returns:None if no ‘all’ in xml, dict of all’s attributes.
All.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.all_ipv6 module

all-ipv6 protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoMiscv6

class virttest.libvirt_xml.nwfilter_protocols.all_ipv6.All_ipv6(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new All_ipv6 xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.All_ipv6.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

All_ipv6 attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender dstmacaddr: string, MAC address of destination dstmacmask: string, Mask applied to MAC address of destination srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED,INVALID or NONE ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
dstmacaddr
dstmacmask
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
srcmacmask
state
All_ipv6.attrs
All_ipv6.get_attr()[source]

Return all-ipv6 attribute dict

Returns:None if no all-ipv6 in xml, dict of all-ipv6’s attributes.
All_ipv6.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.arp module

arp protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoARP

class virttest.libvirt_xml.nwfilter_protocols.arp.Arp(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Arp xml instances

Properties:

attrs: libvirt_xml.nwfilter_protocols.Arp.Attr instance

class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Arp attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender dstmacaddr: string, MAC address of destination dstmacaddr: string, Mask applied to MAC address of destination hwtype: string, Hardware type protocoltype: string, Protocol type opcode: string, Opcode arpsrcmacaddr: string, Source MAC address in ARP/RARP packet arpdstmacaddr: string, Destination MAC address in ARP/RARP packet arpsrcipaddr: string, Source IP address in ARP/RARP packet arpdstipaddr: string, Destination IP address in ARP/RARP packet comment: string, text with max. 256 characters gratuitous: string, boolean indicating whether to check for gratuitous ARP packet

arpdstipaddr
arpdstmacaddr
arpsrcipaddr
arpsrcmacaddr
comment
dstmacaddr
dstmacmask
gratuitous
hwtype
opcode
protocoltype
srcmacaddr
srcmacmask
Arp.attrs
Arp.get_attr()[source]

Return arp attribute dict

Returns:None if no arp in xml, dict of arp’s attributes.
Arp.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.base module

Common base classes for filter rule protocols

class virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase(protocol_tag, type_name, virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.UntypedDeviceBase

Base class implementing common functions for all filter rule XML w/o a type attr.

classmethod new_from_element(element, virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Hides type_name from superclass new_from_element().

type_name
class virttest.libvirt_xml.nwfilter_protocols.base.UntypedDeviceBase(protocol_tag, virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Base class implementing common functions for all rule protocol XML w/o a type attr.

from_element(element)[source]

Stateful component to helper method for new_from_element.

classmethod new_from_dict(properties, virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Create a new filter rule XML instance from a dict-like object

classmethod new_from_element(element, virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Create a new filter rule XML instance from an single ElementTree element

protocol_tag

virttest.libvirt_xml.nwfilter_protocols.esp module

esp protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoMisc

class virttest.libvirt_xml.nwfilter_protocols.esp.Esp(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Esp xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Esp.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Esp attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender dstmacaddr: string, MAC address of destination dstmacmask: string, Mask applied to MAC address of destination srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED,INVALID or NONE ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
dstmacaddr
dstmacmask
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
srcmacmask
state
Esp.attrs
Esp.get_attr()[source]

Return esp attribute dict

Returns:None if no esp in xml, dict of esp’s attributes.
Esp.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.esp_ipv6 module

esp-ipv6 protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoMiscv6

class virttest.libvirt_xml.nwfilter_protocols.esp_ipv6.Esp_ipv6(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Esp_ipv6 xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Esp_ipv6.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Esp_ipv6 attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender dstmacaddr: string, MAC address of destination dstmacmask: string, Mask applied to MAC address of destination srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED,INVALID or NONE ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
dstmacaddr
dstmacmask
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
srcmacmask
state
Esp_ipv6.attrs
Esp_ipv6.get_attr()[source]

Return esp-ipv6 attribute dict

Returns:None if no esp-ipv6 in xml, dict of esp-ipv6’s attributes.
Esp_ipv6.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.icmp module

icmp protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoICMP

class virttest.libvirt_xml.nwfilter_protocols.icmp.Icmp(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Icmp xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Icmp.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Icmp attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender dstmacaddr: string, MAC address of destination dstmacmask: string, Mask applied to MAC address of destination srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address type: string, ICMP type code: string, ICMP code comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED,INVALID or NONE ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

code
comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
dstmacaddr
dstmacmask
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
srcmacmask
state
type
Icmp.attrs
Icmp.get_attr()[source]

Return icmp attribute dict

Returns:None if no icmp in xml, dict of icmp’s attributes.
Icmp.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.icmpv6 module

icmpv6 protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoICMPv6

class virttest.libvirt_xml.nwfilter_protocols.icmpv6.Icmpv6(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Icmpv6 xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Icmpv6.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Icmpv6 attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcipaddr: string, Source IPv6 address srcipmask: string, Mask applied to source IPv6 address dstipaddr: string, Destination IPv6 address dstipmask: string, Mask applied to destination IPv6 address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address type: string, ICMPv6 type code: string, ICMPv6 code comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED,INVALID or NONE ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

code
comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
state
type
Icmpv6.attrs
Icmpv6.get_attr()[source]

Return icmpv6 attribute dict

Returns:None if no icmpv6 in xml, dict of icmpv6’s attributes.
Icmpv6.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.igmp module

igmp protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoMisc

class virttest.libvirt_xml.nwfilter_protocols.igmp.Igmp(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Igmp xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Igmp.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Igmp attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender dstmacaddr: string, MAC address of destination dstmacmask: string, Mask applied to MAC address of destination srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED,INVALID or NONE ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
dstmacaddr
dstmacmask
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
srcmacmask
state
Igmp.attrs
Igmp.get_attr()[source]

Return igmp attribute dict

Returns:None if no igmp in xml, dict of igmp’s attributes.
Igmp.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.ip module

ipv4 protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoIP

class virttest.libvirt_xml.nwfilter_protocols.ip.Ip(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Ip xml instances

Properties:

attrs: libvirt_xml.nwfilter_protocols.Ip.Attr instance

class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Ip attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender dstmacaddr: string, MAC address of destination dstmacaddr: string, Mask applied to MAC address of destination srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address ip_protocol: string, Layer 4 protocol identifier srcportstart: string, Start of range of valid source ports; requires protocol srcportend: string, End of range of valid source ports; requires protocol dstportstart: string, Start of range of valid destination ports; requires protocol dstportend: string, End of range of valid destination ports; requires protocol comment: string, text with max. 256 characters

comment
dscp
dstipaddr
dstipmask
dstmacaddr
dstmacmask
dstportend
dstportstart
ip_protocol
srcipaddr
srcipmask
srcmacaddr
srcmacmask
srcportend
srcportstart
Ip.attrs
Ip.get_attr()[source]

Return ip attribute dict

Returns:None if no ip in xml, dict of ip’s attributes.
Ip.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.ipv6 module

ipv6 protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoIPv6

class virttest.libvirt_xml.nwfilter_protocols.ipv6.Ipv6(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Ipv6 xml instances

Properties:

attrs: libvirt_xml.nwfilter_protocols.Ipv6.Attr instance

class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Ipv6 attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender dstmacaddr: string, MAC address of destination dstmacaddr: string, Mask applied to MAC address of destination srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address ip_protocol: string, Layer 4 protocol identifier srcportstart: string, Start of range of valid source ports; requires protocol srcportend: string, End of range of valid source ports; requires protocol dstportstart: string, Start of range of valid destination ports; requires protocol dstportend: string, End of range of valid destination ports; requires protocol comment: string, text with max. 256 characters

comment
dscp
dstipaddr
dstipmask
dstmacaddr
dstmacmask
dstportend
dstportstart
ip_protocol
srcipaddr
srcipmask
srcmacaddr
srcmacmask
srcportend
srcportstart
Ipv6.attrs
Ipv6.get_attr()[source]

Return ipv6 attribute dict

Returns:None if no ipv6 in xml, dict of ipv6’s attributes.
Ipv6.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.librarian module

Module to hide underlying filter protocol xml handler class implementation

virttest.libvirt_xml.nwfilter_protocols.librarian.get(name)[source]

Returns named filter protocol xml element’s handler class

Parameters:name – the filter protocol name
Returns:named filter protocol xml element’s handler class

virttest.libvirt_xml.nwfilter_protocols.mac module

mac protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoMAC

class virttest.libvirt_xml.nwfilter_protocols.mac.Mac(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Mac xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Mac.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Mac attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender dstmacaddr: string, MAC address of destination dstmacaddr: string, Mask applied to MAC address of destination protocolid: string, Layer 3 protocol ID comment: string, text with max. 256 characters

comment
dstmacaddr
dstmacmask
protocolid
srcmacaddr
srcmacmask
Mac.attrs
Mac.get_attr()[source]

Return mac attribute dict

Returns:None if no mac in xml, dict of mac’s attributes.
Mac.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.rarp module

rarp protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoARP

class virttest.libvirt_xml.nwfilter_protocols.rarp.Rarp(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Rarp xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Rarp.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Rarp attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender dstmacaddr: string, MAC address of destination dstmacaddr: string, Mask applied to MAC address of destination hwtype: string, Hardware type protocoltype: string, Protocol type opcode: string, Opcode arpsrcmacaddr: string, Source MAC address in ARP/RARP packet arpdstmacaddr: string, Destination MAC address in ARP/RARP packet arpsrcipaddr: string, Source IP address in ARP/RARP packet arpdstipaddr: string, Destination IP address in ARP/RARP packet comment: string, text with max. 256 characters gratuitous: string, boolean indicating whether to check for gratuitous ARP packet

arpdstipaddr
arpdstmacaddr
arpsrcipaddr
arpsrcmacaddr
comment
dstmacaddr
dstmacmask
gratuitous
hwtype
opcode
protocoltype
srcmacaddr
srcmacmask
Rarp.attrs
Rarp.get_attr()[source]

Return rarp attribute dict

Returns:None if no rarp in xml, dict of rarp’s attributes.
Rarp.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.sctp module

sctp protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoTCP-ipv4

class virttest.libvirt_xml.nwfilter_protocols.sctp.Sctp(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Sctp xml instances

Properties:

attrs: libvirt_xml.nwfilter_protocols.Sctp.Attr instance

class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Sctp attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address srcportstart: string, Start of range of valid source ports; requires protocol srcportend: string, End of range of valid source ports; requires protocol dstportstart: string, Start of range of valid destination ports; requires protocol dstportend: string, End of range of valid destination ports; requires protocol comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED,INVALID or NONE ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
dstportend
dstportstart
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
srcportend
srcportstart
state
Sctp.attrs
Sctp.get_attr()[source]

Return sctp attribute dict

Returns:None if no sctp in xml, dict of sctp’s attributes.
Sctp.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.sctp_ipv6 module

sctp-ipv6 protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoTCP-ipv6

class virttest.libvirt_xml.nwfilter_protocols.sctp_ipv6.Sctp_ipv6(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Sctp_ipv6 xml instances

Properties:

attrs: libvirt_xml.nwfilter_protocols.Sctp_ipv6.Attr instance

class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Sctp_ipv6 attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address srcportstart: string, Start of range of valid source ports; requires protocol srcportend: string, End of range of valid source ports; requires protocol dstportstart: string, Start of range of valid destination ports; requires protocol dstportend: string, End of range of valid destination ports; requires protocol comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED,INVALID or NONE ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
dstportend
dstportstart
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
srcportend
srcportstart
state
Sctp_ipv6.attrs
Sctp_ipv6.get_attr()[source]

Return sctp-ipv6 attribute dict

Returns:None if no sctp-ipv6 in xml, dict of sctp-ipv6’s attributes.
Sctp_ipv6.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.stp module

stp protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoSTP

class virttest.libvirt_xml.nwfilter_protocols.stp.Stp(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Stp xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Stp.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Stp attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender type: string, Bridge Protocol Data Unit (BPDU) type flags: string, BPDU flag root_priority: string, Root priority (range start) root_priority_hi: string, Root priority range end root_address: string, Root MAC address root_address_mask: string, BPDU sender MAC address root_cost: string, Root path cost (range start) root_cost_hi: string, Root path cost range end sender_priority: string, Sender priority (range start) sender_priority_hi: string, Sender priority range end sender_address: string, BPDU sender MAC address sender_address_mask: string, BPDU sender MAC address mask port: string, Port identifier (range start) port_hi: string, Port identifier range end msg_age: string, Message age timer (range start) msg_age_hi: string, Message age timer range end max_age: string, Maximum age timer (range start) max_age_hi: string, Maximum age timer range end hello_time: string, Hello time timer (range start) hello_time_hi: string, Hello time timer range end forward_delay: string, Forward delay (range start) forward_delay_hi: string, Forward delay range end comment: string, text with max. 256 characters

comment
flags
forward_delay
forward_delay_hi
hello_time
hello_time_hi
max_age
max_age_hi
msg_age
msg_age_hi
port
port_hi
root_address
root_address_mask
root_cost
root_cost_hi
root_priority
root_priority_hi
sender_address
sender_address_mask
sender_priority
sender_priority_hi
srcmacaddr
srcmacmask
type
Stp.attrs
Stp.get_attr()[source]

Return stp attribute dict

Returns:None if no stp in xml, dict of stp’s attributes.
Stp.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.tcp module

tcp protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoTCP-ipv4

class virttest.libvirt_xml.nwfilter_protocols.tcp.Tcp(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Tcp xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Tcp.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Tcp attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address srcportstart: string, Start of range of valid source ports; requires protocol srcportend: string, End of range of valid source ports; requires protocol dstportstart: string, Start of range of valid destination ports; requires protocol dstportend: string, End of range of valid destination ports; requires protocol comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED, INVALID or NONE flags: string, TCP-only: format of mask/flags with mask and flags each being a comma separated list of SYN,ACK,URG,PSH,FIN,RST or NONE or ALL ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
dstportend
dstportstart
flags
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
srcportend
srcportstart
state
Tcp.attrs
Tcp.get_attr()[source]

Return tcp attribute dict

Returns:None if no tcp in xml, dict of tcp’s attributes.
Tcp.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.tcp_ipv6 module

tcp-ipv6 protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoTCP-ipv6

class virttest.libvirt_xml.nwfilter_protocols.tcp_ipv6.Tcp_ipv6(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Tcp_ipv6 xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Tcp_ipv6.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Tcp_ipv6 attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address srcportstart: string, Start of range of valid source ports; requires protocol srcportend: string, End of range of valid source ports; requires protocol dstportstart: string, Start of range of valid destination ports; requires protocol dstportend: string, End of range of valid destination ports; requires protocol comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED, INVALID or NONE flags: string, TCP-only: format of mask/flags with mask and flags each being a comma separated list of SYN,ACK,URG,PSH,FIN,RST or NONE or ALL ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
dstportend
dstportstart
flags
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
srcportend
srcportstart
state
Tcp_ipv6.attrs
Tcp_ipv6.get_attr()[source]

Return tcp-ipv6 attribute dict

Returns:None if no tcp-ipv6 in xml, dict of tcp-ipv6’s attributes.
Tcp_ipv6.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.udp module

udp protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoTCP-ipv4

class virttest.libvirt_xml.nwfilter_protocols.udp.Udp(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Udp xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Udp.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Udp attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address srcportstart: string, Start of range of valid source ports; requires protocol srcportend: string, End of range of valid source ports; requires protocol dstportstart: string, Start of range of valid destination ports; requires protocol dstportend: string, End of range of valid destination ports; requires protocol comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED, INVALID or NONE ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
dstportend
dstportstart
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
srcportend
srcportstart
state
Udp.attrs
Udp.get_attr()[source]

Return udp attribute dict

Returns:None if no udp in xml, dict of udp’s attributes.
Udp.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.udp_ipv6 module

udp-ipv6 protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoTCP-ipv6

class virttest.libvirt_xml.nwfilter_protocols.udp_ipv6.Udp_ipv6(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Udp_ipv6 xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Udp_ipv6.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Udp_ipv6 attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address srcportstart: string, Start of range of valid source ports; requires protocol srcportend: string, End of range of valid source ports; requires protocol dstportstart: string, Start of range of valid destination ports; requires protocol dstportend: string, End of range of valid destination ports; requires protocol comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED, INVALID or NONE ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
dstportend
dstportstart
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
srcportend
srcportstart
state
Udp_ipv6.attrs
Udp_ipv6.get_attr()[source]

Return udp-ipv6 attribute dict

Returns:None if no udp-ipv6 in xml, dict of udp-ipv6’s attributes.
Udp_ipv6.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.udplite module

udplite protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoMisc

class virttest.libvirt_xml.nwfilter_protocols.udplite.Udplite(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Udplite xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Udplite.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Udplite attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender dstmacaddr: string, MAC address of destination dstmacmask: string, Mask applied to MAC address of destination srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED, INVALID or NONE ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
dstmacaddr
dstmacmask
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
srcmacmask
state
Udplite.attrs
Udplite.get_attr()[source]

Return udplite attribute dict

Returns:None if no udplite in xml, dict of udplite’s attributes.
Udplite.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.udplite_ipv6 module

udplite-ipv6 protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoMiscv6

class virttest.libvirt_xml.nwfilter_protocols.udplite_ipv6.Udplite_ipv6(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Udplite_ipv6 xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Udplite_ipv6.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Udplite_ipv6 attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender dstmacaddr: string, MAC address of destination dstmacmask: string, Mask applied to MAC address of destination srcipaddr: string, Source IP address srcipmask: string, Mask applied to source IP address dstipaddr: string, Destination IP address dstipmask: string, Mask applied to destination IP address srcipfrom: string, Start of range of source IP address srcipto: string, End of range of source IP address dstipfrom: string, Start of range of destination IP address dstipto: string, End of range of destination IP address comment: string, text with max. 256 characters state: string, comma separated list of NEW,ESTABLISHED,RELATED, INVALID or NONE ipset: The name of an IPSet managed outside of libvirt ipsetflags: flags for the IPSet; requires ipset attribute

comment
dscp
dstipaddr
dstipfrom
dstipmask
dstipto
dstmacaddr
dstmacmask
ipset
ipsetflags
srcipaddr
srcipfrom
srcipmask
srcipto
srcmacaddr
srcmacmask
state
Udplite_ipv6.attrs
Udplite_ipv6.get_attr()[source]

Return udplite-ipv6 attribute dict

Returns:None if no udplite-ipv6 in xml, dict of udplite-ipv6’s attributes.
Udplite_ipv6.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

virttest.libvirt_xml.nwfilter_protocols.vlan module

vlan protocl support class(es)

http://libvirt.org/formatnwfilter.html#nwfelemsRulesProtoVLAN

class virttest.libvirt_xml.nwfilter_protocols.vlan.Vlan(type_name='file', virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.nwfilter_protocols.base.TypedDeviceBase

Create new Vlan xml instances

Properties:
attrs: libvirt_xml.nwfilter_protocols.Vlan.Attr instance
class Attr(virsh_instance=<module 'virttest.virsh' from '/home/docs/checkouts/readthedocs.org/user_builds/virt-test/checkouts/latest/virttest/virsh.py'>)[source]

Bases: virttest.libvirt_xml.base.LibvirtXMLBase

Vlan attribute XML class

Properties:

srcmacaddr: string, MAC address of sender srcmacmask: string, Mask applied to MAC address of sender dstmacaddr: string, MAC address of destination dstmacaddr: string, Mask applied to MAC address of destination vlanid: string, VLAN ID encap_protocol: string, Encapsulated layer 3 protocol ID comment: string, text with max. 256 characters

comment
dstmacaddr
dstmacmask
encap_protocol
srcmacaddr
srcmacmask
vlanid
Vlan.attrs
Vlan.get_attr()[source]

Return vlan attribute dict

Returns:None if no vlan in xml, dict of vlan’s attributes.
Vlan.new_attr(**dargs)[source]

Return a new Attr instance and set properties from dargs

Parameters:dargs – dict of attributes
Returns:new Attr instance

Module contents