This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
use quick_xml::{events::Event, Reader}; | |
fn main() { | |
const BASE1_1: &str = "urn:ietf:params:netconf:base:1.1"; | |
let xml = format!("<capability>{}</capability>", BASE1_1); | |
let mut r = Reader::from_str(&xml); | |
let mut buf = Vec::new(); | |
loop { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
import socket | |
import sys | |
import tty | |
import termios | |
import paramiko | |
from paramiko.py3compat import u | |
import ncs | |
from _ncs import decrypt |