Page Menu
Home
VyOS Platform
Search
Configure Global Search
Log In
Files
F118857548
T9518-json.py
All Users
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
rherold
Wed, Oct 28, 9:51 AM
2026-10-28 09:51:04 (UTC+0)
Size
370 B
Referenced Files
None
Subscribers
None
T9518-json.py
View Options
import
json
p
=
'/usr/share/vyos/config-mode-dependencies/vyos-vpp.json'
d
=
json
.
load
(
open
(
p
))
d
[
'vpp'
][
'mpls'
]
=
[
'protocols_mpls'
]
d
.
setdefault
(
'interfaces_ethernet'
,
{})[
'mpls'
]
=
[
'protocols_mpls'
]
json
.
dump
(
d
,
open
(
p
,
'w'
),
indent
=
4
)
open
(
p
,
'a'
)
.
write
(
'
\n
'
)
print
(
d
[
'vpp'
][
'mpls'
]
==
[
'protocols_mpls'
]
and
d
[
'interfaces_ethernet'
][
'mpls'
]
==
[
'protocols_mpls'
])
File Metadata
Details
Attached
Mime Type
text/plain
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4565588
Default Alt Text
T9518-json.py (370 B)
Attached To
Mode
T9518: VPP:MPLS/LDP over a VPP interface, not enabling the MPLS feature in VPP
Attached
Detach File
Event Timeline
Log In to Comment