ietf-ccamp-wg / ietf-network-inventory

3 stars 5 forks source link

Initial straw-man proposal #1

Closed italobusi closed 2 years ago

italobusi commented 3 years ago

Initial straw-man proposal for the YANG tree:

augment network/node:
   +--ro ne-name                       string
   +--ro component* [id]
      +--ro id
      +--ro name
      +--ro description
      +--ro component-type             // shelf, board, physical-port
      +--ro manufacturer-name
      +--ro manufacturer-date
      +--ro product-name
      +--ro serial-number?
      +--ro part-number
      +--ro pluggable                  boolean
      +--ro software-version
      +--ro hardware-version
      +--ro firmware-version
      +--ro operational-state
      +--ro position
      |  +--ro ne-name        string
      |  +--ro rack?          uint8
      |  +--ro shelf?         uint8
      |  +--ro sub-shelf*     uint8   // when ../shelf
      |  +--ro slot?          uint8
      |  +--ro sub-slot*      uint8   // when ../slot
      |  +--ro port?          uint8   // when (not ../slot and not ../shelf and
      |                            //       not ../rack) or (../slot)
      +--ro holder* [id]
         +--ro id                      string
         +--ro actual-component?       -> ../../../component/id

Co-authored-by: agva123 agva123@gmail.com Co-authored-by: haomianzheng zhenghaomian@huawei.com

italobusi commented 3 years ago

c/pluggable/removable/

italobusi commented 3 years ago

another component-type could be defined for the pizza box

italobusi commented 2 years ago

2021-10-06 Network Inventory Call

Three options have been proposed:

  1. Initial straw-man proposal: issue #1-comment
  2. Proposal based on RFC8348: issue #2-comment
  3. Proposal based on schema-mount issue #11-comment

General agreement to start from RFC8348 as the basis either by re-using it (option 2) or with schema-mount (option 3). The decision between option 2 and 3 is pending further analysis of the schema mount mechanism.