Otherwise lxml.etree.XMLSchema complains.

Signed-off-by: Isaku Yamahata <[email protected]>
---
 ryu/lib/of_config/of-config-1.0.xsd   |    2 ++
 ryu/lib/of_config/of-config-1.1.1.xsd |    6 ++++++
 ryu/lib/of_config/of-config-1.1.xsd   |    6 ++++++
 3 files changed, 14 insertions(+)

diff --git a/ryu/lib/of_config/of-config-1.0.xsd 
b/ryu/lib/of_config/of-config-1.0.xsd
index baf1258..a30d4d2 100644
--- a/ryu/lib/of_config/of-config-1.0.xsd
+++ b/ryu/lib/of_config/of-config-1.0.xsd
@@ -7,6 +7,8 @@
            xmlns:inet="urn:ietf:params:xml:ns:yang:ietf-inet-types">
     <xs:import namespace="urn:ietf:params:xml:ns:yang:ietf-inet-types"
                schemaLocation="ietf-inet-types.xsd"/>
+    <xs:import namespace="urn:ietf:params:xml:ns:netconf:base:1.0"
+               schemaLocation="../netconf/netconf.xsd"/>
     <xs:element name="capable-switch" type="OFCapableSwitchType">
         <xs:annotation>
             <xs:documentation>The OpenFlow Capable Switch and its 
configuration points, logical
diff --git a/ryu/lib/of_config/of-config-1.1.1.xsd 
b/ryu/lib/of_config/of-config-1.1.1.xsd
index 9f10f70..a31bfe9 100644
--- a/ryu/lib/of_config/of-config-1.1.1.xsd
+++ b/ryu/lib/of_config/of-config-1.1.1.xsd
@@ -11,6 +11,12 @@
     xmlns:yang="urn:ietf:params:xml:ns:yang:ietf-yang-types"
     xmlns:inet="urn:ietf:params:xml:ns:yang:ietf-inet-types"
     xmlns:of11-config="urn:onf:of111:config:yang">
+    <xs:import namespace="urn:ietf:params:xml:ns:yang:ietf-inet-types"
+              schemaLocation="ietf-inet-types.xsd"/>
+    <xs:import namespace="urn:ietf:params:xml:ns:yang:ietf-yang-types"
+              schemaLocation="ietf-yang-types.xsd"/>
+    <xs:import namespace="urn:ietf:params:xml:ns:netconf:base:1.0"
+              schemaLocation="../netconf/netconf.xsd"/>
     <xs:annotation>
         <xs:documentation> This schema was generated from the YANG module 
of-config1.1.1 by pyang
             version 1.2. The schema describes an instance document consisting 
of the entire
diff --git a/ryu/lib/of_config/of-config-1.1.xsd 
b/ryu/lib/of_config/of-config-1.1.xsd
index f93ec7e..3448a69 100644
--- a/ryu/lib/of_config/of-config-1.1.xsd
+++ b/ryu/lib/of_config/of-config-1.1.xsd
@@ -6,6 +6,12 @@
            xmlns="urn:onf:params:xml:ns:onf:of12:config"
            xmlns:of12-config="urn:onf:params:xml:ns:onf:of12:config"
            xmlns:inet="urn:ietf:params:xml:ns:yang:ietf-inet-types">
+    <xs:import namespace="http://www.w3.org/2000/09/xmldsig#";
+              schemaLocation="xmldsig-core-schema.xsd"/>
+    <xs:import namespace="urn:ietf:params:xml:ns:yang:ietf-inet-types"
+              schemaLocation="ietf-inet-types.xsd"/>
+    <xs:import namespace="urn:ietf:params:xml:ns:netconf:base:1.0"
+              schemaLocation="../netconf/netconf.xsd"/>
     <xs:element name="capable-switch" type="OFCapableSwitchType">
         <xs:annotation>
             <xs:documentation>The OpenFlow Capable Switch and its 
configurationpoints, logical
-- 
1.7.10.4


------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
Ryu-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ryu-devel

Reply via email to