Skip to content

Instantly share code, notes, and snippets.

View ujwalkomarla's full-sized avatar

Ujwal Komarla ujwalkomarla

View GitHub Profile
@ujwalkomarla
ujwalkomarla / ansible_hosts
Created August 26, 2019 22:16
Ansible RESTCONF PUT
REST_SW1 ansible_host=10.68.5.65 ansible_network_os=restconf ansible_connection=httpapi ansible_user=admin ansible_ssh_pass= ansible_httpapi_restconf_root='/rest/restconf/data'
@ujwalkomarla
ujwalkomarla / ansible_hosts
Last active March 28, 2019 15:25
Ansible Restconf POST Method Issue
REST_SW1 ansible_host=10.68.5.65 ansible_network_os=restconf ansible_connection=httpapi ansible_user=admin ansible_ssh_pass= ansible_httpapi_restconf_root='/rest/restconf/data'
@ujwalkomarla
ujwalkomarla / ansible_hosts
Last active March 28, 2019 15:24
Sample EXOS HTTPAPI Ansible Playbook
R_SW1 ansible_host=10.68.5.64 ansible_network_os=exos ansible_connection=httpapi ansible_user=admin ansible_ssh_pass=""
INFO global: Vagrant version: 2.2.4
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_INSTALLER_VERSION="2"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/bin/vagrant"
WARN global: resolv replacement has not been enabled!
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/plugins/synced_folders/nfs/plugin.rb
INFO global: Vagrant version: 2.2.4
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/bin/vagrant"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_INSTALLER_VERSION="2"
WARN global: resolv replacement has not been enabled!
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/plugins/synced_folders/nfs/plugin.rb
INFO global: Vagrant version: 2.2.4
INFO global: Ruby version: 2.4.4
INFO global: RubyGems version: 2.6.14.1
INFO global: VAGRANT_LOG="debug"
INFO global: VAGRANT_INSTALLER_EMBEDDED_DIR="/opt/vagrant/embedded"
INFO global: VAGRANT_INSTALLER_ENV="1"
INFO global: VAGRANT_EXECUTABLE="/opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/bin/vagrant"
INFO global: VAGRANT_INSTALLER_VERSION="2"
WARN global: resolv replacement has not been enabled!
DEBUG global: Loading core plugin: /opt/vagrant/embedded/gems/2.2.4/gems/vagrant-2.2.4/plugins/synced_folders/nfs/plugin.rb
# The contents below were provided by the Packer Vagrant post-processor
Vagrant.configure("2") do |config|
config.vm.base_mac = "080027555D5B"
end
# The contents below (if any) are custom contents provided by the
# Packer template during image build.
@ujwalkomarla
ujwalkomarla / bash.py
Created March 10, 2019 05:17
Extreme OS get to linux shell
import os
import subprocess
process = subprocess.Popen('/bin/sh', cwd='/usr/local/cfg')
process.wait()