[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[YANG] import statement



Hi,

I have difficulties in understanding what happens when a module imports
another and the latter contains "real" data tree, not just groupings and
typedefs. For example:

module foo {
  namespace "urn:foo";
  prefix foo;
  container foo-cont {
    leaf foo-leaf {
      ...
    }
  }
}

module bar {
  namespace "urn:bar";
  prefix bar;
  import foo {
    prefix foo;
  }
  container bar-cont {
    leaf bar-leaf {
      ...
    }
  }
}  

Is now the data model expressed by bar affected in any way by the fact
that it imports foo?

Thanks, Lada

-- 
Ladislav Lhotka, CESNET
PGP Key ID: E74E8C0C

_______________________________________________
YANG mailing list
YANG at ietf.org
https://www.ietf.org/mailman/listinfo/yang