Skip to content
Snippets Groups Projects

add chassis

Closed Aleksandr Kurbatov requested to merge chassis into develop
1 file
+ 27
0
Compare changes
  • Side-by-side
  • Inline
 
<chassis xmlns="urn:nokia.com:sros:ns:yang:sr:conf" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nokia-attr="urn:nokia.com:sros:ns:yang:sr:attributes" alu:operation="replace">
 
<chassis-class>router</chassis-class>
 
{% for chassis in nokia_chassis %}
 
<chassis-number>{{chassis.chassis_id}}</chassis-number>
 
{% for power_shelf in chassis.power_shelves %}
 
<power-shelf>
 
<power-shelf-id>{{ power_shelf.shelf_id}}</power-shelf-id>
 
<admin-state>enable</admin-state>
 
<power-shelf-type>{{ power_shelf.shelf_type }}</power-shelf-type>
 
{% for power_module in power_shelf.power_modules %}
 
<power-module>
 
<power-module-id>{{power_module.power_module_id}}</power-module-id>
 
<admin-state>enable</admin-state>
 
<power-module-type>{{power_module.power_module_type}}</power-module-type>
 
</power-module>
 
{% endfor %}
 
</power-shelf>
 
{% endfor %}
 
{% endfor %}
 
</chassis>
 
<system>
 
<power-management xmlns="urn:nokia.com:sros:ns:yang:sr:conf" xmlns:nc="urn:ietf:params:xml:ns:netconf:base:1.0" xmlns:nokia-attr="urn:nokia.com:sros:ns:yang:sr:attributes" alu:operation="replace">
 
<power-zone>1</power-zone>
 
<mode>none</mode>
 
<power-safety-level>67</power-safety-level>
 
</power-management>
 
</system>
Loading