BGPmon-Validate-1

 view release on metacpan or  search on metacpan

etc/xfb_2_00.xsd  view on Meta::CPAN

<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
	targetNamespace="urn:ietf:params:xml:ns:xfb" xmlns:xfb="urn:ietf:params:xml:ns:xfb"
	xmlns:ne="urn:ietf:params:xml:ns:network_elements" elementFormDefault="qualified">
	<xsd:import id="ne" namespace="urn:ietf:params:xml:ns:network_elements"
		schemaLocation="network_elements_2_00.xsd" />

	<xsd:element name="OPEN" type="xfb:open_type" />
	<xsd:element name="UPDATE" type="xfb:update_type" />
	<xsd:element name="NOTIFICATION" type="xfb:notification_type" />
	<xsd:element name="KEEP_ALIVE" type="xfb:keepalive_type" />


	<xsd:complexType name="open_type">

		<xsd:sequence>
			<xsd:element name="VERSION" type="xsd:unsignedByte"
				minOccurs="1" maxOccurs="1" />
			<xsd:element name="ASN" type="xsd:unsignedInt" minOccurs="1"
				maxOccurs="1" />
			<xsd:element name="HOLD_TIME" type="xsd:unsignedInt"
				minOccurs="1" maxOccurs="1" />
			<xsd:element name="BGP_ID" type="xsd:unsignedLong"
				minOccurs="1" maxOccurs="1" />
			<xsd:choice maxOccurs="unbounded" minOccurs="0">
				<xsd:element ref="xfb:MP_CAP" />
				<xsd:element ref="xfb:ROUTE_REFRESH_CAP" />
				<xsd:element ref="xfb:OUTBOUND_ROUTE_FILTERING_CAP" />
				<xsd:element ref="xfb:MPLS_CAP" />
				<xsd:element ref="xfb:UNKNOWN_CAPABILITY" />
			</xsd:choice>
		</xsd:sequence>

		<xsd:attribute name="bgp_message_type" type="xsd:integer"
			fixed="1" use="required" />
	</xsd:complexType>


	<xsd:complexType name="update_type">
		<xsd:sequence>
			<xsd:element name="WITHDRAW" type="ne:ipv4_prefix_type"
				maxOccurs="unbounded" minOccurs="0" />

			<xsd:choice maxOccurs="unbounded" minOccurs="0">

				<!-- type 1 -->
				<xsd:element ref="xfb:ORIGIN" maxOccurs="1" minOccurs="0" />
				<!-- type 2 -->
				<xsd:element ref="xfb:AS_PATH" maxOccurs="1" minOccurs="0" />
				<!-- type 3 -->
				<xsd:element ref="xfb:NEXT_HOP" maxOccurs="1" minOccurs="0" />
				<!-- type 4 -->
				<xsd:element ref="xfb:MULTI_EXIT_DISC" maxOccurs="1"
					minOccurs="0" />
				<!-- type 5 -->
				<xsd:element ref="xfb:LOCAL_PREF" maxOccurs="1"
					minOccurs="0" />
				<!-- type 6 -->
				<xsd:element ref="xfb:ATOMIC_AGGREGATE" maxOccurs="1"
					minOccurs="0" />
				<!-- type 7 -->
				<xsd:element ref="xfb:AGGREGATOR" maxOccurs="1"
					minOccurs="0" />
				<!-- type 8 -->
				<xsd:element ref="xfb:COMMUNITY" maxOccurs="unbounded"
					minOccurs="0" />
				<!-- type 9 -->
				<xsd:element ref="xfb:ORIGINATOR_ID" maxOccurs="1"
					minOccurs="0" />
				<!-- type 10 -->
				<xsd:element ref="xfb:CLUSTER_LIST" maxOccurs="1"

etc/xfb_2_00.xsd  view on Meta::CPAN

	<xsd:complexType name="message_header_error_type">
		<xsd:sequence>
			<xsd:element ref="xfb:SUBCODE" />
		</xsd:sequence>
		<xsd:attribute name="code" fixed="1" type="xsd:integer" />
	</xsd:complexType>

	<xsd:complexType name="open_message_error_type">
		<xsd:sequence>
			<xsd:element ref="xfb:SUBCODE" />
		</xsd:sequence>
		<xsd:attribute name="code" fixed="2" type="xsd:integer" />
	</xsd:complexType>

	<xsd:complexType name="update_message_error_type">
		<xsd:sequence>
			<xsd:element ref="xfb:SUBCODE" />
		</xsd:sequence>
		<xsd:attribute name="code" fixed="3" type="xsd:integer" />
	</xsd:complexType>

	<xsd:complexType name="hold_timer_expired_type">
		<xsd:sequence>
			<xsd:element ref="xfb:SUBCODE" />
		</xsd:sequence>
		<xsd:attribute name="code" fixed="4" type="xsd:integer" />
	</xsd:complexType>

	<xsd:complexType name="finite_state_machine_error_type">
		<xsd:sequence>
			<xsd:element ref="xfb:SUBCODE" />
		</xsd:sequence>
		<xsd:attribute name="code" fixed="5" type="xsd:integer" />
	</xsd:complexType>


	<xsd:complexType name="cease_type">
		<xsd:sequence>
			<xsd:element ref="xfb:SUBCODE" />
		</xsd:sequence>
		<xsd:attribute name="code" fixed="6" type="xsd:integer" />
	</xsd:complexType>

	<xsd:complexType name="unknown_error_type">
		<xsd:sequence>
			<xsd:element ref="xfb:SUBCODE" />
		</xsd:sequence>
		<xsd:attribute name="code" type="xsd:integer" />
	</xsd:complexType>

	<xsd:element name="SUBCODE" type="xfb:notification_error_subcode" />

	<xsd:complexType name="notification_error_subcode">
		<xsd:simpleContent>
			<xsd:extension base="xsd:string">
				<xsd:attribute name="code" type="xsd:integer" />
			</xsd:extension>
		</xsd:simpleContent>
	</xsd:complexType>

	<xsd:complexType name="keepalive_type">
		<xsd:attribute name="bgp_message_type" type="xsd:integer"
			fixed="4" use="required" />
	</xsd:complexType>

	<!-- This section defines the optional parameters in an open message https://tools.ietf.org/html/rfc5492 -->
	<xsd:element name="UNKNOWN_CAPABILITY" type="xfb:unknown_capability_type" />

	<xsd:complexType name="unknown_capability_type">
		<xsd:complexContent>
			<xsd:extension base="xfb:capabilities_type">
				<xsd:sequence>
					<xsd:element name="VALUE" type="xsd:hexBinary" />
				</xsd:sequence>
				<xsd:attribute name="code" type="xsd:unsignedInt" />
			</xsd:extension>

		</xsd:complexContent>

	</xsd:complexType>


	<xsd:complexType name="capabilities_type">
		<xsd:complexContent>
			<xsd:restriction base="xfb:optional_parameter_type">
				<xsd:attribute name="parameter_type" type="xsd:integer"
					fixed="2" use="required" />
			</xsd:restriction>
		</xsd:complexContent>
	</xsd:complexType>

	<xsd:complexType name="optional_parameter_type"
		abstract="true">
		<xsd:attribute name="parameter_type" type="xsd:integer"
			use="required" />
	</xsd:complexType>

	<xsd:element name="ORIGIN" type="xfb:origin_type" />
	<xsd:element name="AS_PATH" type="xfb:as_path_type" />
	<xsd:element name="NEXT_HOP" type="xfb:next_hop_type" />
	<xsd:element name="MULTI_EXIT_DISC" type="xfb:multi_exit_disc_type" />
	<xsd:element name="LOCAL_PREF" type="xfb:local_pref_type" />
	<xsd:element name="ATOMIC_AGGREGATE" type="xfb:atomic_aggregate_type" />
	<xsd:element name="AGGREGATOR" type="xfb:aggregator_type" />
	<xsd:element name="COMMUNITY" type="xfb:community_type" />
	<xsd:element name="ORIGINATOR_ID" type="xfb:originator_id_type" />
	<xsd:element name="CLUSTER_LIST" type="xfb:cluster_list_type" />
	<xsd:element name="MP_REACH_NLRI" type="xfb:mp_reach_nlri_type" />
	<xsd:element name="MP_UNREACH_NLRI" type="xfb:mp_unreach_nlri_type" />
	<xsd:element name="EXTENDED_COMMUNITIES" type="xfb:extended_communities_type" />
	<xsd:element name="AS4_PATH" type="xfb:as4_path" />
	<xsd:element name="AS4_AGGREGATOR" type="xfb:as4_aggregator_type" />
	<xsd:element name="UNKNOWN_ATTRIBUTE" type="xfb:unknown_attribute_type" />
	<xsd:element name="PARSE_ERROR" type="xfb:parse_error_type" />

	<xsd:complexType name="origin_type">
		<xsd:simpleContent>
			<xsd:extension base="xfb:origin_sub_type">
				<xsd:attribute name="optional" type="xsd:boolean"
					fixed="false" use="required" />
				<xsd:attribute name="transitive" type="xsd:boolean"



( run in 2.380 seconds using v1.01-cache-2.11-cpan-df04353d9ac )