Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
openairinterface5G
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Admin message
Maintenance operation of our GitLab server is scheduled for Wednesday, April 16, 2025, at 2PM.
Show more breadcrumbs
Qingqing Huang
openairinterface5G
Commits
5ebff866
Commit
5ebff866
authored
9 years ago
by
Rohit Gupta
Browse files
Options
Downloads
Patches
Plain Diff
added support for specifying gateway + help print
parent
d927bf6b
No related branches found
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
+15
-3
15 additions, 3 deletions
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
with
15 additions
and
3 deletions
cmake_targets/autotests/tools/configure_cots_bandrich_ue.py
+
15
−
3
View file @
5ebff866
...
...
@@ -126,8 +126,8 @@ def start_ue () :
break
ip
=
IPRoute
()
idx
=
ip
.
link_lookup
(
ifname
=
iface
)[
0
]
os
.
system
(
'
route add
192.172.0.1
ppp0
'
)
os
.
system
(
'
ping
192.172.0.1
'
)
os
.
system
(
'
route add
'
+
gw
+
'
ppp0
'
)
os
.
system
(
'
ping
'
+
gw
)
break
except
Exception
,
e
:
error
=
'
Interface
'
+
iface
+
'
does not exist...
'
...
...
@@ -188,7 +188,10 @@ def find_usb_path(idVendor, idProduct):
return
tmpdir
return
''
for
arg
in
sys
.
argv
[
1
:]:
i
=
1
gw
=
'
192.172.0.1
'
while
i
<
len
(
sys
.
argv
):
arg
=
sys
.
argv
[
i
]
if
arg
==
'
--start-ue
'
:
find_open_port
()
print
'
Using Serial port :
'
+
serial_port
...
...
@@ -199,8 +202,17 @@ for arg in sys.argv[1:]:
stop_ue
()
elif
arg
==
'
--reset-ue
'
:
reset_ue
()
elif
arg
==
'
-gw
'
:
gw
=
sys
.
argv
[
i
+
1
]
i
=
i
+
1
elif
arg
==
'
-h
'
:
print
"
--reset-ue: Reset the UE on USB Bus. Similar to unplugging and plugging the UE
"
print
"
--stop-ue: Stop the UE. Send DETACH command
"
print
"
--start-ue: Start the UE. Send ATTACH command
"
print
"
-gw: Specify the default gw as sometimes the gateway/route arguments are not set properly via wvdial
"
else
:
print
"
Script called with wrong arguments, arg =
"
+
arg
sys
.
exit
()
i
=
i
+
1
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment