Giter Site home page Giter Site logo

Comments (3)

atanu-mandal avatar atanu-mandal commented on August 16, 2024

The VLAN sub interface type(i.e. vlanSubInterface) is not handled in current OPX 2.2.0 code base and the functionality is being developed in-house (would be part of later OPX main release).

Given that, we should be able to handle the requirement to add/query tagged interfaces to a VLAN.

Configuring tagged ports through Linux utilities

root@OPX:# brctl addbr br200
root@OPX:# ip addr flush dev e101-020-0
root@OPX:# ip link add link e101-020-0 name e101-020-0.200 type vlan id 200
root@OPX:# brctl addif br200 e101-020-0.200

root@OPX:~# brctl show
bridge name bridge id STP enabled interfaces
br200 8000.90b11cf49d23 no e101-020-0.200

root@OPX:~# cps_get_oid.py dell-base-if-cmn/if/interfaces/interface | grep 020
dell-if/if/interfaces/interface/tagged-ports = e101-020-0
if/interfaces/interface/name = e101-020-0

root@OPX:~# opx-switch-shell "vlan show"
vlan 1 ports none (0x0000000000000000000000000000000000000000000000000000000000000000), untagged none (0x0000000000000000000000000000000000000000000000000000000000000000) MCAST_FLOOD_UNKNOWN
vlan 200 ports xe64 (0x0000000000000000000000000000000000000000000000020000000000000000), untagged none (0x0000000000000000000000000000000000000000000000000000000000000000) MCAST_FLOOD_UNKNOWN
vlan 4095 ports xe (0x00000000000000000000000000000000000001fffffffffffffffffffffffffe), untagged xe (0x00000000000000000000000000000000000001fffffffffffffffffffffffffe) MCAST_FLOOD_UNKNOWN

root@OPX:~# cps_config_vlan.py --show
Key: 1.19.44.2883617.2883612.2883613.
dell-base-if-cmn/if/interfaces/interface/if-index = 38
dell-if/if/interfaces/interface/phys-address = 90:b1:1c:f4:9d:23
base-if-vlan/if/interfaces/interface/id = 200
if/interfaces/interface/name = br200
dell-if/if/interfaces/interface/vlan-type = 0
dell-if/if/interfaces/interface/learning-mode = 1
dell-if/if/interfaces/interface/mtu = 1532
if/interfaces/interface/enabled = 0
dell-if/if/interfaces/interface/tagged-ports = e101-020-0

Configuring tagged ports through CPS utilities

root@OPX:~# cps_config_vlan.py --add --id 100 --vlantype 1 --port e101-001-0 --t
Success

root@OPX:~# brctl show
bridge name bridge id STP enabled interfaces
br100 8000.90b11cf49d23 no e101-001-0.100

root@OPX:~# cps_get_oid.py dell-base-if-cmn/if/interfaces/interface | grep 001
dell-if/if/interfaces/interface/tagged-ports = e101-001-0
if/interfaces/interface/name = e101-001-0

root@OPX:~# opx-switch-shell -c "vlan show"

vlan 1 ports none (0x0000000000000000000000000000000000000000000000000000000000000000), untagged none (0x0000000000000000000000000000000000000000000000000000000000000000) MCAST_FLOOD_UNKNOWN
vlan 100 ports xe0 (0x0000000000000000000000000000000000000000000000000000000000000002), untagged none (0x0000000000000000000000000000000000000000000000000000000000000000) MCAST_FLOOD_UNKNOWN
vlan 4095 ports xe (0x00000000000000000000000000000000000001fffffffffffffffffffffffffe), untagged xe (0x00000000000000000000000000000000000001fffffffffffffffffffffffffe) MCAST_FLOOD_UNKNOWN

root@OPX:~# cps_config_vlan.py --show
Key: 1.19.44.2883617.2883612.2883613.
dell-base-if-cmn/if/interfaces/interface/if-index = 36
dell-if/if/interfaces/interface/phys-address = 90:b1:1c:f4:9d:23
base-if-vlan/if/interfaces/interface/id = 100
if/interfaces/interface/name = br100
dell-if/if/interfaces/interface/vlan-type = 1
dell-if/if/interfaces/interface/learning-mode = 1
dell-if/if/interfaces/interface/mtu = 1532
if/interfaces/interface/enabled = 0
dell-if/if/interfaces/interface/tagged-ports = e101-001-0

Please let me know for any clarification

Thanks,
-Atanu

from opx-cps.

james-jra avatar james-jra commented on August 16, 2024

Ah, so you don't need to create a VLAN subinterface before assigning it as a tagged port - it's explicitly created when you add the interface as a tagged port on the VLAN.
We just don't have control of the VLAN subinterface itself via CPS, but will at some future point.

I understand, that's very helpful,

thank you.
James

from opx-cps.

atanu-mandal avatar atanu-mandal commented on August 16, 2024

Sure James. Thanks. I am going to close this issue.

from opx-cps.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.