open-switch / opx-docs Goto Github PK
View Code? Open in Web Editor NEWOpenSwitch OPX documentation.
Home Page: https://openswitch.net
OpenSwitch OPX documentation.
Home Page: https://openswitch.net
Current configuration guide (http://archive.openswitch.net/docs/3.0.0/openswitch_opx_300_config_guide.pdf) shows the use of ifconfig command. Maybe you could consider its deprecation state.
Moreover, you could consider replacing brctl command (which is deprecated, too, at least in Fedora) by bridge command (from iproute suite)
Actually, the latest configuration guide is for OPX 3.1.0 and it has been moved to the wiki. So we actually need to make corrections to the wiki documentation in places like this:
https://github.com/open-switch/opx-docs/wiki/Layer-3
Hi,
When I run " sudo ./opx_setup" command, it report docker-opx image not found, and I also can not find the image from the web("https://index.docker.io/v1/repositories/library/docker-opx/images").
Unable to find image 'docker-opx:base' locally
Pulling repository docker.io/library/docker-opx
docker: Network timed out while trying to connect to https://index.docker.io/v1/repositories/library/docker-opx/images. You may want to check your internet connection or if you are behind a proxy..
See 'docker run --help'.
cat: id: No such file or directory
Error response from daemon: No such container: docker-opx:latest
cat: id: No such file or directory
"docker rm" requires at least 1 argument(s).
See 'docker rm --help'.
I am trying to do a traffic forwarding test (snake test). For this i need to create various VLAN's and maintain a FDB. I am creating bridges using 'brctl' command and adding interfaces to it and able to do this fine. By using 'bridge' command trying to create a FDB but traffic forward is not happening and i am not sure whether the entries created is correct or not. In the below link (https://github.com/open-switch/opx-docs/wiki/Layer-2) it mentioned as there is no linux command support to manage MAC FDB's.
So now trying to access SAI libraries (libopx_sai_common.so) from Python(using ctypes) and still not succeeded in this.
Please kindly explain the steps to do a snake test / how to create/manage a FDB entry (command line or any application)
@mikelazar Is this project dead "again"? Rocket.Chat no longer working and no roadmap, nor active development.
I have a use case to create 3 opx vms and I should be able to ping from one vm to other.
Below is my Vagrantfile:
BOX_IMAGE="opx/2.3.0"
BOX_VERSION="2.3.0"
SWITCH_COUNT=3
Vagrant.configure("2") do |config|
(1..SWITCH_COUNT).each do |i|
config.vm.define "switch#{i}" do |subconfig|
subconfig.vm.box = BOX_IMAGE
subconfig.vm.box_version = BOX_VERSION
subconfig.vm.hostname = "switch#{i}"
subconfig.vm.network "private_network", ip: "10.0.0.#{i + 10}"
end
end
config.vm.provision "shell", inline: <<-SHELL
apt-get update
apt-get install -y apache2
SHELL
end
When I'm trying to do vagrant up it fails with the below error:
Bringing machine 'switch1' up with 'virtualbox' provider...
Bringing machine 'switch2' up with 'virtualbox' provider...
Bringing machine 'switch3' up with 'virtualbox' provider...
==> switch1: Checking if box 'opx/2.3.0' is up to date...
==> switch1: Running provisioner: shell...
An error occurred in the underlying SSH library that Vagrant uses.
The error message is shown below. In many cases, errors from this
library are caused by ssh-agent issues. Try disabling your SSH
agent or removing some keys and try again.
If the problem persists, please report a bug to the net-ssh project.
timeout during server version negotiating
My vagrant ssh-config:
Host switch1
HostName 127.0.0.1
User vagrant
Port 2202
UserKnownHostsFile /dev/null
StrictHostKeyChecking no
PasswordAuthentication no
IdentityFile /Users/sthatipally/.vagrant.d/insecure_private_key
IdentitiesOnly yes
LogLevel FATAL
The provider for this Vagrant-managed machine is reporting that it
is not yet ready for SSH. Depending on your provider this can carry
different meanings. Make sure your machine is created and running and
try again. Additionally, check the output of vagrant status
to verify
that the machine is in the state that you expect. If you continue to
get this error message, please view the documentation for the provider
you're using.
Can someone please help me to figure out why ssh is failing?
Does Linux commands (like brctl addbr, or ip route) will let the underlying switch silicon perform bridging or routing ? How can OPX help it ?
Thanks.
Hi ,
Is there any document to describe the existing CPS classes(objects) available to use?
Please check the attached architecture block.
For example, about L2 API/Schema, I need a document to describe what objects in L2 (forwarding tables, ACL tables ... ) available for use.
Since CPS API document doesn't mention them.
Thanks.
opx-docs/examples/c_client_template.c
Line 4 in 2ce489a
Looks like all these files were pasted poorly. All spacing is wrong.
The current instructions for running OPX in a virtual machine are quite cumbersome requiring to execute some untrusted binary lvm
.
Please provide an image usable with QEMU/KVM, and document the instructions for that.
I might be missing some point in the OPX setup & config for L3 routing, but I can't make OPX to forward packets on Dell EMC S4248FBL-ON. After plain installation of OPX 3.1 I set
ip link set up dev e101-040-0
ip link set up dev e101-001-0
ip addr add 192.168.1.1/24 dev e101-040-0
ip addr add 192.168.2.1/24 dev e101-001-0
For the L3 test I have hosts with IP addresses 192.168.1.2 & 192.168.2.2 connected to the corresponding interfaces. The hosts (.2) can not ping the switch (.1) addresses. It seems switch can send out IMCP echo requests to the hosts, hosts are sending replies, but they never arrive to the Linux IP stack on the switch. And when I add routes to the hosts to use the .1 as a gateway for the other network it does not work as well. But ARP is working fine - I can see all the right records in ARP tables on the switch and on the hosts as well.
Both interfaces are up and running and there seems to be no L1/2 issue - I successfully tested L2 switching in the same physical setup beforehand.
If there is some simple step that I missed I suggest extending the L3 routing section of this manual with it.
The contributor onboarding page seems to be dead at http://governance.openswitch.net/governance/contributor-onboarding.html#contributing
Hi!
I'm doing a fresh install in a DELL Z9100-ON with the 3.2.0 image and after the first login if I do a "apt upgrade" the system hangs during the apt in:
Setting up opx-platform-config-dell-z9100 (1.8.1) ...
It seems that dpkg is not consuming resources:
root@OPX:/home/admin# ps aux |grep dpkg
root 7826 0.0 0.0 16736 3748 pts/1 Ss+ 10:07 0:00 /usr/bin/dpkg --status-fd 38 --configure --pending
root 13716 0.0 0.0 4276 1420 pts/1 S+ 10:07 0:00 /bin/sh /var/lib/dpkg/info/opx-platform-config-dell-z9100.postinst configure 1.8.0+git20190618.b964d8a
If I stop manually the apt process (CTRL+c) and try to install the opx-platform-config-dell-z9100_1.8.1_all.deb package manually the result is the same:
root@OPX:/var# dpkg -i opx-platform-config-dell-z9100_1.8.1_all.deb
(Reading database ... 29435 files and directories currently installed.)
Preparing to unpack opx-platform-config-dell-z9100_1.8.1_all.deb ...
Hi Guys!
Did anyone can build OPX for " FOXCONN S7810 " or "Netberg Aurora " ?
the oldest version of openswitch (OPS) is running, when I try to build new version compare with Dell EMC S4048-ON switches, the installation was failed and killed the process.
ONIE version : icos-openswitch-onie-recovery-x86_64-huracan_rangeley_p1330-r0
Hi All,
I want to run open-switch vm on QEMU, where should I download required vmdk from?
Thanks.
Get the following error when attempting to install the OpenSwitch VM:
$ ./lvm create openswitch --iso onie_kvm.iso --bin PKGS_OPX-3.2.1-installer-x86_64.bin
Configuration:
lvm
.The error message:
...
Version 2.3.3
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files on the virtual machine in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
OS-installer file: /home/...../openswitch/PKGS_OPX-3.2.1-installer-x86_64.bin
ONIE-Recovery file: /home/...../openswitch/onie_kvm.iso
Deleting VM name: "openswitch"
Failed: VBoxManage: error: Failed to create the VirtualBox object!
VBoxManage: error: Code NS_ERROR_FACTORY_NOT_REGISTERED (0x80040154) - Class not registered (extended info not available)
VBoxManage: error: Most likely, the VirtualBox COM server is not running or failed to start.
I can start virtualbox and run another vm just fine. I did a bunch of searching and most of the suggestions are seriously dated or just did not work.
Thanks!
Downloaded OPX 2.2 VM from https://archive.openswitch.net/vm-tools/2.2.0
but the show version still shows 2.1
opxUser@opx_vm:~$ opx-show-version
OS_NAME="OPX"
OS_VERSION="2.1.0"
PLATFORM="S6000-VM"
ARCHITECTURE="x86_64"
INTERNAL_BUILD_ID="OpenSwitch blueprint for Dell 1.0.0"
BUILD_VERSION="2.1.0(0)"
BUILD_DATE="2017-08-04T12:01:19-0700"
INSTALL_DATE="2017-09-13T21:42:34+0000"
Failed to get D-Bus connection: No such file or directory
SYSTEM_STATE=
UPGRADED_PACKAGES=no
ALTERED_PACKAGES=no
Trying to install the OPX VM v2.2, I got the installer from https://archive.openswitch.net/vm-tools/2.2.0/lvm as suggested by https://github.com/open-switch/opx-docs/wiki/Run-virtual-machine.
Despite the URL, it installed VM 2.1, and gave no warning that it was doing so.
Nice stuff you got here with OPX, but will it work with DELL EMC switches I can actually find on Amazon or NewEgg or TigerDirect? The ones in the supported hardware list I'm having difficulty finding and perhaps even if I did find one by chance it would be out of my budget.
https://www.amazon.com/Dell-EMC-Networking-N1148P-ON-Switch/dp/B077BCDW9T/
I'm looking to run something custom instead of my current setup, OPX seems to be a great fit for what I'm trying to do since the netgear software kinda sucks. I want to be able to customize the software and fix bugs too.
XS728T ProSAFE 28-Port 10-Gigabit L2+ Smart Switch
Hi *,
I would like to install a p4 capability on an opx binary for DELL switch . Is the
https://github.com/open-switch/ops-switchd-p4switch-plugin correct approach ?
Cheers,
Dimitriss
The Interfaces wiki page states that there are CPS API examples for configuring Port-channel (LAG) bond interfaces (https://github.com/open-switch/opx-docs/wiki/Interfaces#delete-bond-interface)
I have not been able to find such an example.
Does such an example exist?
If not, is it currently possible to do the configuration shown in the Interfaces wiki page via the CPS API?
https://github.com/open-switch/opx-docs/wiki/Run-virtual-machine explains a little bit how to set up OPX in VirtualBox. Apart from appearing a "dummy0" and a "npu-0" interface in my VM which aren't explained (and I don't know for what they worth), my main concern is about how to use e101-NNN-x interfaces as a simple switch ports in a GNS3 environment. This software expects interfaces to connect should be in VirtualBox's "Not connected" mode to be able to manage them but VirtualBox by default only shows 4 interfaces, so with lo, eth0, dummy0 and nps-0, the quota has already been filled!!
In other words: how can I get rid of dummy-0 and npu-0 interfaces so, at least, I can have two "e101-NNN-x" interfaces recognized by VirtualBox to use as a regular (although only 2-port) switch inside GNS3 labs?
In other words, why there are so may "e101-NNN-x" interfaces if VirtualBox can't recognize them (and, therefore, GNS can't handle them)?
Thanks a lot
Did not know what's the best place to ask this, so asking here.
I wanted to know if open-switch can run on Accton-AS7712-32X. It is not explicitly mentioned in the supported hardware.
This is also an ONIE based whitebox switch. I am not sure if some special hardware support is required from switches to run open-switch. Will open-switch run out of the box on Accton-AS7712-32X (I guess the default port/interface config might be specific to the switch).
I follow the step (already install docker engine):
# get source code
repo init -u https://github.com/open-switch/opx-manifest && repo sync
# build all open-source packages
opx-build/scripts/opx_run opx_build all
# assemble installer
opx-build/scripts/opx_run opx_rel_pkgasm.py --dist unstable \
-b opx-onie-installer/release_bp/OPX_dell_base.xml
while i exec opx-build/scripts/opx_run opx_build all
, it turn out the error:
standard_init_linux.go:211: exec user process caused "exec format error"
So, How to run opx on raspberry pi 4?
Testing for a notification.
Hi *,
Vagrant.configure("2") do |config|
# Configure switch, i.e., device under test (DUT)
config.vm.define "switch" do |switch|
switch.vm.box = "opx/2.2.0-dev"
switch.vm.network "private_network", ip: "172.16.0.10", netmask: "255.255.255.0", virtualbox__intnet: "gen-sw"
switch.vm.network "private_network", ip: "172.16.0.11", netmask: "255.255.255.0", virtualbox__intnet: "sw-rcv"
switch.vm.network "private_network", ip: "192.168.50.4"
switch.vm.provider "virtualbox" do |virtualbox|
# Customize the amount of memory on the VM:
virtualbox.memory = "1024"
virtualbox.cpus = "1"
# Enable promiscuous mode
virtualbox.customize ["modifyvm", :id, "--nicpromisc2", "allow-all"]
virtualbox.customize ["modifyvm", :id, "--nicpromisc3", "allow-all"]
end
which successfully executes boots up. This VM is not a S 6000 emulated switch though.
How can I find to which architecture corresponds to ?
What are the HW framework of the VMs in the vagrant store ?
Cheers,
Dimitris
Hi,
I am trying to build OPX by following the steps mentioned in the below link:
https://github.com/open-switch/opx-docs/wiki/OpenSwitch-build-system
With the "opx_setup" I am getting the following error. Could you point me to what I am missing or doing wrong here?
PS: I am able to resolve deb.debian.org and security.debian.org from outside the docker.
Thanks
Mahesh
./opx_setup
Sending build context to Docker daemon 132.1 kB
Step 1 : FROM debian:jessie
---> 62a932a5c143
Step 2 : MAINTAINER [email protected]
---> Using cache
---> 38bb22047ce3
Step 3 : RUN apt-get update && apt-get upgrade -y && apt-get install -y dh-autoreconf dh-systemd git-buildpackage lsb-release vim wget && rm -rf /var/lib/apt/lists/*
---> Running in 70a84014d85c
Err http://deb.debian.org jessie InRelease
Err http://deb.debian.org jessie-updates InRelease
Err http://security.debian.org jessie/updates InRelease
Err http://deb.debian.org jessie Release.gpg
Could not resolve 'deb.debian.org'
Err http://security.debian.org jessie/updates Release.gpg
Could not resolve 'security.debian.org'
Err http://deb.debian.org jessie-updates Release.gpg
Could not resolve 'deb.debian.org'
Reading package lists...
W: Failed to fetch http://deb.debian.org/debian/dists/jessie/InRelease
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/InRelease
W: Failed to fetch http://security.debian.org/dists/jessie/updates/InRelease
W: Failed to fetch http://deb.debian.org/debian/dists/jessie/Release.gpg Could not resolve 'deb.debian.org'
W: Failed to fetch http://deb.debian.org/debian/dists/jessie-updates/Release.gpg Could not resolve 'deb.debian.org'
W: Failed to fetch http://security.debian.org/dists/jessie/updates/Release.gpg Could not resolve 'security.debian.org'
W: Some index files failed to download. They have been ignored, or old ones used instead.
Reading package lists...
Building dependency tree...
Reading state information...
0 upgraded, 0 newly installed, 0 to remove and 0 not upgraded.
Reading package lists...
Building dependency tree...
Reading state information...
E: Unable to locate package dh-autoreconf
E: Unable to locate package dh-systemd
E: Unable to locate package git-buildpackage
E: Unable to locate package lsb-release
E: Unable to locate package vim
E: Unable to locate package wget
The command '/bin/sh -c apt-get update && apt-get upgrade -y && apt-get install -y dh-autoreconf dh-systemd git-buildpackage lsb-release vim wget && rm -rf /var/lib/apt/lists/*' returned a non-zero code: 100
Unable to find image 'docker-opx:base' locally
Pulling repository docker.io/library/docker-opx
docker: Error: image library/docker-opx:base not found.
See 'docker run --help'.
cat: id: No such file or directory
Error response from daemon: No such container: docker-opx:latest
cat: id: No such file or directory
"docker rm" requires at least 1 argument(s).
See 'docker rm --help'.
Usage: docker rm [OPTIONS] CONTAINER [CONTAINER...]
Remove one or more containers
Error response from daemon: No such image: docker-opx:base
OPX Docker Image
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
root@mahesh-VirtualBox:/home/mahesh/opx/opx-build/scripts# docker image docker-opx
docker: 'image' is not a docker command.
See 'docker --help'.
root@mahesh-VirtualBox:/home/mahesh/opx/opx-build/scripts# docker search docker-opx
NAME DESCRIPTION STARS OFFICIAL AUTOMATED
Thanks
Mahesh
Hello,
I was just wondering where I could find the source code of lvm?
Or is lvm not open source?
Hi, I've been trying to build the Openswitch code and environments using the following link:
https://github.com/open-switch/opx-docs/wiki/OpenSwitch-build-system
While trying to build the docker image, the script 'opx_setup' isn't in the opx-build/scripts directory. In fact, the file doesn't exist anywhere on my system. Could anyone help me by pointing out if I made a mistake while building the source code or if there is any other way to build the docker image?
I am using Ubuntu 16.04 Desktop Version and Docker 18.09.0
I am unable to create opx switch
Command: ./mvm create switch1 --port 8089
t8. ..S:.
.;.88X ;888:
X; 8. 8X t888S 8X
.8S;;.:. 8X... .;@@8@8@8X88..
.@ :. :::::. . 8XSS88S8888@@@8:@
@8s:.. .. : @ S 88X@8@88888888@88 88
8t X ..; @ .S 8888S8@88@@888X8888888
.X8X t@ @ .::X. 888X8S88888888888X@88:
S 8 .@t 8 ;:. : X. .S 8S888888St8S888888S :
:@8x:.8X @ ;:.tX8 S 88X8888;;; X88888XX
@.@t :SX:. 888X8888 .. 88@:.
:X: 88. SS@S88888: t8X.
X 888X888S: .:.
888S8S888;
SX@X888888X .
.t8.: S 8888X88XX: .88:8. ;8 8.
.X:88XX.. 888X8S88 .;SX8: X8@888.
.SSX888X8. X 8X8888@ 8X .X 8 .t8 .:@:X8:
:8.8X88X8@88;8X@88888@ .:;8 t...tS X.@ .:tX8XXt
:X8S@88XX8888888@888X88 tX ...t;. .;8tt
88X888@88X@88888888888@. 8 ;:.. X:
:X8888@8S@8@8888888.:. @ @888. .8X;t
;. SS888888@8@t ; .. ..X8 S.:
.::8888888 .. X8 :X8@;
.:; .S888S: X8S :X.
:; 8X. ;.X
..::
_____ _____ _ _ _
| _ | / | () | | |
| | | | __ ___ _ __ \ --.__ ___| |_ ___| |__ | | | | '_ \ / _ \ '_ \
--. \ \ /\ / / | __/ _| ' \
\ _/ / |) | / | | /__/ /\ V V /| | || (| | | |
_/| ./ _|| |_/ _/_/ ||____|| ||
| |
||
Version 2.3.2
The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files on the virtual machine in /usr/share/doc/*/copyright.
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
https://archive.openswitch.net/installers/stable/Dell-EMC/PKGS_OPX-stable-installer-x86_64.bin seems to point to an invalid binary.
Failed to execute script vm
Hello,
I'm following this tutorial: https://github.com/open-switch/opx-docs/wiki/Run-virtual-machine
I have installed a clean ubuntu 16.04, then I installed virtualbox. And when I run lvm create openswitch
this is what I got:
Getting OS-Installer via URL. Downloading.... Please wait!
Time remaining: 00:00:00 100% [====================================>] 405 / 405
OS-installer file: /home/irevoire/PKGS_OPX-stable-jessie-installer-x86_64.bin
Getting ONIE-Recovery via URL. Downloading.... Please wait!
Time remaining: 00:00:00 100% [==========================>] 17934336 / 17934336
ONIE-Recovery file: /home/irevoire/onie_kvm.iso
Deleting VM name: "openswitch"
Initial boot in progress........................................................OK
ONIE is self-embedding..........................................................OK
Wait for VM to boot.............................................................OK
ONIE stop discovery.............................................................OK
Load OS-installer. This operation may take a few minutes. Please wait...........OK
Installing OS...................................................................OK
Failed to detect OS installed paritions. Please verify nos installer package is valid. /installer: line 1: syntax error: unexpected newline
Warning: Permanently added '[127.0.0.1]:2222' (RSA) to the list of known hosts.
Connection to 127.0.0.1 closed.
I've been trying to figure this out, but couldn't find a good source, does OPX support OpenFlow?
Links to https://archive.openswitch.net/ (vm.exe, lvm and mvm) do not work because archive.openswitch.net does not support HTTPS.
Therefore all links should be converted to HTTP -> http://archive.openswitch.net/
Installed open switch vm on mac as per instructions provided in the wiki:
It creates a vm but says:
Setup complete! You can now connect using: ssh -p 2223 [email protected]
Failed to execute script vm
I am unable to ssh to it.
And after the installation, I see vm started in virtual box but its asking me username and password to login though I haven't provided any.
Hi!
I Just tried to use this link on my Dell S6000-ON
ONIE:~ # onie-nos-install https://dell-networking.bintray.com/opx-images/opx-onie-installer/1.0/onie-installer-x86_64.bin
Info: Fetching https://dell-networking.bintray.com/opx-images/opx-onie-installer/1.0/onie-installer-x86_64.bin ...
wget: not an http or ftp url: https://dell-networking.bintray.com/opx-images/opx-onie-installer/1.0/onie-installer-x86_64.bin
Is this a correct link? Also, I tried to install an X86_64 installer image but I don't see one in docker container.
root@2a31a585d39f:/mnt# ls -l | grep opx | wc -l
170
root@2a31a585d39f:/mnt# ls -l | grep opx-dell
-rw-r--r-- 1 root root 1296 Mar 1 06:33 opx-dell-s6000_1.0.3_all.deb
-rw-r--r-- 1 root root 1286 Mar 1 06:33 opx-dell-vm_1.0.3_all.deb
Which of these files can be used from ONIE.
Thanks,
Shishir
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.