ne:netzwerkmanagement
Unterschiede
Hier werden die Unterschiede zwischen zwei Versionen angezeigt.
Beide Seiten der vorigen RevisionVorhergehende ÜberarbeitungNächste Überarbeitung | Vorhergehende Überarbeitung | ||
ne:netzwerkmanagement [2017/06/08 09:23] – admin | ne:netzwerkmanagement [2018/01/31 13:41] (aktuell) – [Netconf & YANG] admin | ||
---|---|---|---|
Zeile 1: | Zeile 1: | ||
====== Netzwerkmanangement ====== | ====== Netzwerkmanangement ====== | ||
- | * https:// | ||
===== Netconf & YANG ===== | ===== Netconf & YANG ===== | ||
+ | * http:// | ||
+ | * https:// | ||
+ | * http:// | ||
+ | * [[https:// | ||
+ | |||
* https:// | * https:// | ||
Zeile 21: | Zeile 25: | ||
==== MQTT-Netconf-YANG Bridge ==== | ==== MQTT-Netconf-YANG Bridge ==== | ||
+ | **LED-Color: | ||
<code bash> | <code bash> | ||
mosquitto_pub -d -h localhost -p 1883 -t " | mosquitto_pub -d -h localhost -p 1883 -t " | ||
- | " | + | " |
- | " | + | " |
- | set_color_blue": | + | " |
+ | " | ||
+ | " | ||
" | " | ||
</ | </ | ||
+ | <code json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | **LED-Color: | ||
<code bash> | <code bash> | ||
- | mosquitto_pub -d -h localhost -p 1883 -t " | + | mosquitto_pub -d -h localhost -p 1883 -t " |
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | </ | ||
+ | |||
+ | <code json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | } | ||
</ | </ | ||
+ | **LED-Color: | ||
<code bash> | <code bash> | ||
mosquitto_pub -d -h localhost -p 1883 -t " | mosquitto_pub -d -h localhost -p 1883 -t " | ||
Zeile 42: | Zeile 122: | ||
</ | </ | ||
+ | <code json> | ||
+ | { | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | }, | ||
+ | " | ||
+ | " | ||
+ | " | ||
+ | } | ||
+ | } | ||
+ | } | ||
+ | </ | ||
+ | |||
+ | <code python> | ||
m = manager.connect_ssh(" | m = manager.connect_ssh(" | ||
n = xml_.to_ele('< | n = xml_.to_ele('< | ||
m.dispatch(n) | m.dispatch(n) | ||
+ | </ | ||
+ | <code python> | ||
n = xml_.to_ele('< | n = xml_.to_ele('< | ||
n = xml_.to_ele('< | n = xml_.to_ele('< | ||
n = xml_.to_ele('< | n = xml_.to_ele('< | ||
n = xml_.to_ele('< | n = xml_.to_ele('< | ||
+ | </ | ||
:!: **ACHTUNG: | :!: **ACHTUNG: | ||
- | Setup in iTerm: (cd / | + | Setup in iTerm: ('' |
- | Links: mqtt/LIFX bridge (./mqtt) | + | |
- | Mitte: mqtt_publisher (send json) | + | |
- | Rechts: mqtt_subscriber (mosquitto_sub -d -h localhost -p 1883 -t "#" | + | |
- | Unten: / | + | |
- | **Terminal:** | + | ==== Terminal: |
- | Virtenv starten: | + | |
- | NETCONF/ | + | **Virtenv starten:** |
- | Achtung: | + | <code bash> |
- | ncclient: | + | source |
- | from ncclient import manager | + | </ |
- | from ncclient import xml_ | + | |
+ | **NETCONF/ | ||
+ | <code bash> | ||
+ | python -i netconf_Server.py | ||
+ | </ | ||
+ | **ncclient: | ||
+ | <code python> | ||
+ | from ncclient import manager | ||
+ | from ncclient import xml_ | ||
+ | </ | ||
+ | |||
+ | <code python> | ||
for capability in m.server_capabilities: | for capability in m.server_capabilities: | ||
... | ... | ||
+ | </ | ||
+ | <code python> | ||
m = manager.connect_ssh(' | m = manager.connect_ssh(' | ||
+ | </ |
ne/netzwerkmanagement.1496913781.txt.gz · Zuletzt geändert: 2017/06/08 09:23 von admin