GithubHelp home page GithubHelp logo

Comments (2)

mbredel avatar mbredel commented on September 26, 2024

Yes, all ID fields are unique.

Any ID field belongs to a specific scope. In the given example, the scope is not the file (root), but the virtual_link section and the connection_point section respectively. There is no reference that is ambiguous, i.e., referencing a virtual link OR a connection point. Thus, the both id-fields, although the contain the same value, i.e., "mgmt", identify a virtual link and a connection point uniquely.

Moreover, the ID value is an arbitrary string that does not impose any specific format or pattern, right now. Thus, the ID value can be named by the developer/writer of the VNFD file as he wishes. However, it might be wise to come up with a meaningful naming scheme, say "virtual_link:mgmt" and "connection_point:mgmt" to get the scope directly from the name of the ID. We could enforce such a naming scheme, but I have the feeling that this would be to strict ...

from son-schema.

mbredel avatar mbredel commented on September 26, 2024

Although the above statement is true, and the ID fields are unique, we have to change the reference to IDs. In order to reference an ID, we have to provide the scope as well. For example, to identify the connection points in the virtual links section:

virtual_links
  - id: "mgmt"
    connectivity_type: "E-LAN"
    connection_points_reference:
      - vdu_ref: "vdu01"
        cp_ref: "vdu01:cp01"
      - cp_ref: "mgmt"
  - id: "input"
    connectivity_type: "E-Line"
    connection_points_reference:
      - cp_ref: "vdu01:cp02"
        vdu_ref: "vdu01"
      - cp_ref: "input"

A connection_point_reference has to have a reference to the VDU. If this reference is missing, the cp-reference refers to a (global) VNF connection point.

from son-schema.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.