Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

missing the "labeltype" attribute from the SwitchingService #5

Open
xi-yang opened this issue Mar 23, 2016 · 0 comments
Open

missing the "labeltype" attribute from the SwitchingService #5

xi-yang opened this issue Mar 23, 2016 · 0 comments

Comments

@xi-yang
Copy link
Collaborator

xi-yang commented Mar 23, 2016

From John MacAuley:

 I noticed the version of NML OWL you are using is missing the "labeltype" attribute from the SwitchingService.  We added this into the XSD last year to address a problem I believe you are trying to solve via the encoding type.  Your switching service should appears as follows:

<urn:ogf:network:openstack.com:openstack-cloud:ucs-fabric>
    a <http://schemas.ogf.org/nml/2013/03/base#SwitchingService>;
    <http://schemas.ogf.org/mrs/2013/12/topology#providesSubnet>
        <urn:ogf:network:openstack.com:openstack-cloud:port-profile+AWS-DC-1>,
        <urn:ogf:network:openstack.com:openstack-cloud:port-profile+AWS-DC-3>,
        <urn:ogf:network:openstack.com:openstack-cloud:port-profile+AWS-DC-2>,
        <urn:ogf:network:openstack.com:openstack-cloud:port-profile+MSX-Data-Remote>;
    <http://schemas.ogf.org/nml/2013/03/base#encoding> <http://schemas.ogf.org/nml/2012/10/ethernet>;
    <http://schemas.ogf.org/nml/2013/03/base#labeltype> <http://schemas.ogf.org/nml/2012/10/ethernet#vlan>;
    <http://schemas.ogf.org/nml/2013/03/base#hasBidirectionalPort>
        <urn:ogf:network:openstack.com:openstack-cloud:host+msx2:sriov-pf>,
        <urn:ogf:network:openstack.com:openstack-cloud:ucs-tor-sw:10g-dc>,
        <urn:ogf:network:openstack.com:openstack-cloud:host+msx3:sriov-pf>,
        <urn:ogf:network:openstack.com:openstack-cloud:host+msx4:sriov-pf>,
        <urn:ogf:network:openstack.com:openstack-cloud:host+msx1:sriov-pf>;
    <http://schemas.ogf.org/nml/2013/03/base#labelSwapping> false .

encoding is "http://schemas.ogf.org/nml/2012/10/ethernet" and labeltype is "http://schemas.ogf.org/nml/2012/10/ethernet#vlan".  This allows us to separate the encoding of the payload from the label being switched.

I believe the following change to the labeltype definition in the NML OWL schema will fix this:

    <!-- http://schemas.ogf.org/nml/2013/03/base#labeltype -->

    <owl:ObjectProperty rdf:about="http://schemas.ogf.org/nml/2013/03/base#labeltype">
        <rdfs:domain>
            <owl:Class>
                <owl:unionOf rdf:parseType="Collection">
                    <rdf:Description rdf:about="http://schemas.ogf.org/nml/2013/03/base#Label"/>
                    <rdf:Description rdf:about="http://schemas.ogf.org/nml/2013/03/base#LabelGroup"/>
                    <rdf:Description rdf:about="http://schemas.ogf.org/nml/2013/03/base#SwitchingService"/>
                </owl:unionOf>
            </owl:Class>
        </rdfs:domain>
    </owl:ObjectProperty>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant