Subject: [CCAMP] [ietf-ccamp-wg/draft-ietf-ccamp-optical-impairment-topology-yang] d8e5f8: simplify the tree using suggestion in PR#22 (#50)

From: Esther Le Rouzic <[email-masked]>
Date: Wed, 10 Feb 2021 02:03:53 -0800

Branch: refs/heads/master
  Home:   https://github.com/ietf-ccamp-wg/draft-ietf-ccamp-optical-impairment-topology-yang
  Commit: d8e5f8634735d61091b4352a6823fd9fde0c7292
      https://github.com/ietf-ccamp-wg/draft-ietf-ccamp-optical-impairment-topology-yang/commit/d8e5f8634735d61091b4352a6823fd9fde0c7292
  Author: Esther Le Rouzic <[email-masked]>
  Date:   2021-02-10 (Wed, 10 Feb 2021)

  Changed paths:
    M .travis.yml
    M ietf-optical-impairment-topology.tree
    M ietf-optical-impairment-topology.yang
    M requirements.txt

  Log Message:
  -----------
  simplify the tree using suggestion in PR#22 (#50)

* update pyang and python versions

Signed-off-by: EstherLerouzic <[email-masked]>

* simplify the tree using suggestion in PR#22

remove the type since th name of the container is explicitly giving the type,
remove the extra element encapsultation to simplify the tree

instance example before:
"OMS-elements":[
{
   "elt-index": 0,
   "uid": "booster_in_RoadmA_to_RoadmB",
   "type": "Edfa",
   "element": {
       "amplifier": {
            "type-variety": "std_medium_gain",
            "operational": {
                "actual-gain": 16,
                 "tilt-target": 0,
                 ...
             }
        }
    }
},
{
   "elt-index": 1,
   "uid": "Fiber_RoadmA_to_RoadmB",
   "type": "Fiber",
   "element": {
        "fiber": {
            "type-variety": "SMF",
            "length": 71,
            ....
        }
    }
},
{
....

after the change:

"OMS-elements":[
{
   "elt-index": 0,
   "uid": "booster_in_RoadmA_to_RoadmB",
   "amplifier": {
       "type-variety": "std_medium_gain",
       "operational": {
           "actual-gain": 16,
           "tilt-target": 0,
           ...
        }
    }
},
{
   "elt-index": 1,
   "uid": "Fiber_RoadmA_to_RoadmB",
   "fiber": {
       "type-variety": "SMF",
       "length": 71,
       ....
   }
},
{
....
Signed-off-by: EstherLerouzic <[email-masked]>
Co-authored-by: Jan Kundrát <[email-masked]>

* Add mandatory attribute  in concentrated loss and in element choice

Signed-off-by: EstherLerouzic <[email-masked]>

* update tree to be compliant with the yang

Signed-off-by: EstherLerouzic <[email-masked]>

* update the tree with 69 char width

Signed-off-by: EstherLerouzic <[email-masked]>