cancel
Showing results for 
Search instead for 
Did you mean: 

/proc/self/ns_id in EXOS 30

/proc/self/ns_id in EXOS 30

CFaber
New Contributor
Anyone tried scripting with VRs in EXOS 30?

The user guide still quotes:
code:
try:
f = open('/proc/self/ns_id', 'w')
f.write('2\n')
f.close()

See: https://documentation.extremenetworks.com/exos_30.3/GUID-EB79667C-6182-49C1-A6DE-24083956210C.shtml

Since 30.X I get the error-message
run script test.py
Traceback (most recent call last):
File "/usr/local/cfg/test.py", line 20, in
vr_change('2\n')
File "/usr/local/cfg/test.py", line 16, in vr_change
f = open("/proc/self/ns_id", "w")
IOError: [Errno 2] No such file or directory: '/proc/self/ns_id'

The script works in Version 21.X and 22.X

reading other objects like /proc/self/mem works.
0 REPLIES 0
GTM-P2G8KFN