9c6c51
From 988f1476012e203e0610d891d6d59d76ec196395 Mon Sep 17 00:00:00 2001
9c6c51
Message-Id: <988f1476012e203e0610d891d6d59d76ec196395@dist-git>
9c6c51
From: Han Han <hhan@redhat.com>
9c6c51
Date: Thu, 19 Jul 2018 16:23:39 -0400
9c6c51
Subject: [PATCH] virt-xml-validate: Add schema for nwfilterbinding
9c6c51
9c6c51
https://bugzilla.redhat.com/show_bug.cgi?id=1600330
9c6c51
9c6c51
Add nwfilterbinding schema in virt-xml-validate for autoprobing.
9c6c51
Add document of nwfilterbinding schema in tools/virt-xml-validate.pod.
9c6c51
9c6c51
Signed-off-by: Han Han <hhan@redhat.com>
9c6c51
Reviewed-by: John Ferlan <jferlan@redhat.com>
9c6c51
(cherry picked from commit a47d053720f3b4965184bc9a5a87a86d301957ea)
9c6c51
Signed-off-by: John Ferlan <jferlan@redhat.com>
9c6c51
Reviewed-by: Andrea Bolognani <abologna@redhat.com>
9c6c51
---
9c6c51
 tools/virt-xml-validate.in  | 3 +++
9c6c51
 tools/virt-xml-validate.pod | 4 ++++
9c6c51
 2 files changed, 7 insertions(+)
9c6c51
9c6c51
diff --git a/tools/virt-xml-validate.in b/tools/virt-xml-validate.in
9c6c51
index 81fde4d832..7513413189 100644
9c6c51
--- a/tools/virt-xml-validate.in
9c6c51
+++ b/tools/virt-xml-validate.in
9c6c51
@@ -77,6 +77,9 @@ if [ -z "$TYPE" ]; then
9c6c51
      *device*)
9c6c51
         TYPE="nodedev"
9c6c51
         ;;
9c6c51
+     *filterbinding*)
9c6c51
+        TYPE="nwfilterbinding"
9c6c51
+        ;;
9c6c51
      *filter*)
9c6c51
         TYPE="nwfilter"
9c6c51
         ;;
9c6c51
diff --git a/tools/virt-xml-validate.pod b/tools/virt-xml-validate.pod
9c6c51
index f8e67503fd..a51a57002a 100644
9c6c51
--- a/tools/virt-xml-validate.pod
9c6c51
+++ b/tools/virt-xml-validate.pod
9c6c51
@@ -52,6 +52,10 @@ The schema for the XML format used to declare driver capabilities
9c6c51
 
9c6c51
 The schema for the XML format used by network traffic filters
9c6c51
 
9c6c51
+=item C<nwfilterbinding>
9c6c51
+
9c6c51
+The schema for XML format used by network filter bindings.
9c6c51
+
9c6c51
 =item C<secret>
9c6c51
 
9c6c51
 The schema for the XML format used by secrets descriptions
9c6c51
-- 
9c6c51
2.18.0
9c6c51