summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorIsaku Yamahata <yamahata@valinux.co.jp>2013-03-07 18:00:41 +0900
committerFUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>2013-03-08 07:19:53 +0900
commit22ffd626effdea7db3499441cbce38d6ea309561 (patch)
tree94852a5470cdbbb799efc12145aaa6d4363b58e4
parent53fd01a402a4b4636c092a9690567f8cdb9b504e (diff)
netconf: import xml schema
This is stolen from flowforwarding enetconf git://github.com/FlowForwarding/enetconf.git enetconf/priv/xml.xsd This is a slimmed down version of http://www.w3.org/2001/xml.xsd. Without this, validator can access to network when loading/validating XML. Signed-off-by: Isaku Yamahata <yamahata@valinux.co.jp> Signed-off-by: FUJITA Tomonori <fujita.tomonori@lab.ntt.co.jp>
-rw-r--r--ryu/lib/netconf/xml.xsd29
1 files changed, 29 insertions, 0 deletions
diff --git a/ryu/lib/netconf/xml.xsd b/ryu/lib/netconf/xml.xsd
new file mode 100644
index 00000000..6234d2ef
--- /dev/null
+++ b/ryu/lib/netconf/xml.xsd
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="utf-8"?>
+<xs:schema targetNamespace="http://www.w3.org/XML/1998/namespace"
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
+ xmlns="http://www.w3.org/1999/xhtml"
+ xml:lang="en">
+ <xs:attribute name="lang">
+ <xs:simpleType>
+ <xs:union memberTypes="xs:language">
+ <xs:simpleType>
+ <xs:restriction base="xs:string">
+ <xs:enumeration value=""/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:union>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="space">
+ <xs:simpleType>
+ <xs:restriction base="xs:NCName">
+ <xs:enumeration value="default"/>
+ <xs:enumeration value="preserve"/>
+ </xs:restriction>
+ </xs:simpleType>
+ </xs:attribute>
+ <xs:attribute name="base"
+ type="xs:anyURI"/>
+ <xs:attribute name="id"
+ type="xs:ID"/>
+</xs:schema>