Comments (3)
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.
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.
Sure James. Thanks. I am going to close this issue.
from opx-cps.
Related Issues (20)
- Statistics values always return / show 0 HOT 8
- How to apply low-level switch configuration via CPS API HOT 1
- Can't generate opx cps document HOT 5
- C SDK example HOT 7
- an example (CPS application )of configuring the MAC address forwarding database HOT 1
- CPS Get OID Call On S4000 Platform Running Out Of Memory Before Listing 16K Routes HOT 3
- Improve cps_get_oid.py script
- Simple ACL fails
- can't save L2 configuration with cps_set_oid.py HOT 7
- Query interface configuration by type broken HOT 8
- Server (untagged) unable to ping SVI gateway hosted of ToR HOT 7
- Setting physical address on LAG interface doesn't always stick HOT 14
- Result pollution in latest CPS HOT 2
- Packet with TTL=1 is not handled properly in S4248FB-ON HOT 1
- Object registration in python succeeds, but handlers are never invoked HOT 3
- Not able to remove registration added with cps_api_event_thread_reg HOT 1
- Development packages do not point to correct binary packages HOT 1
- opx-base-model fails to build due to problem in yin_utils.py HOT 1
- get cps python callback never returns any data HOT 2
- opx-cps service must be of type "Notify"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from opx-cps.