Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
O
OAI-RAN-5G-sheduler_MaxTBS
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD 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
Show more breadcrumbs
MAQ5G-PFC
OAI-RAN-5G-sheduler_MaxTBS
Commits
af5e4b17
Commit
af5e4b17
authored
10 years ago
by
Lionel Gauthier
Browse files
Options
Downloads
Patches
Plain Diff
git-svn-id:
http://svn.eurecom.fr/openair4G/trunk@5616
818b1a75-f10b-46b9-bf7c-635c3b92a50f
parent
2c37f777
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
targets/PROJECTS/GENERIC-LTE-EPC/interfaces.bash
+9
-1
9 additions, 1 deletion
targets/PROJECTS/GENERIC-LTE-EPC/interfaces.bash
targets/PROJECTS/GENERIC-LTE-EPC/start_epc.bash
+9
-3
9 additions, 3 deletions
targets/PROJECTS/GENERIC-LTE-EPC/start_epc.bash
with
18 additions
and
4 deletions
targets/PROJECTS/GENERIC-LTE-EPC/interfaces.bash
+
9
−
1
View file @
af5e4b17
...
...
@@ -245,9 +245,17 @@ set_interface_up() {
sync
}
# input is hostname, you should have checked it is reachable by
# ping -c 1 $the_hostname > /dev/null || { echo_fatal "the_hostname does not respond to ping" >&2 ; }
get_ip
()
{
IP
=
$(
python
-c
'import socket; print socket.gethostbyname("'
$1
'")'
)
echo
"
$IP
"
}
get_mac_router
()
{
ping
-c
1 router.eur
>
/dev/null
||
{
echo_fatal
"router.eur does not respond to ping"
>
&2
;
}
IP_ROUTER
=
`
python
-c
'import socket; print socket.gethostbyname("router.eur")'
`
IP_ROUTER
=
$(
get_ip router.eur
)
#IP_ROUTER=`python -c 'import socket; print socket.gethostbyname("router.eur")'`
export
MAC_ROUTER
=
`
ip neigh show |
grep
$IP_ROUTER
' '
|
cut
-d
' '
-f5
|
tr
-d
':'
`
echo_success
"ROUTER IP ADDRESS=
$IP_ROUTER
"
echo_success
"ROUTER MAC ADDRESS=
$MAC_ROUTER
"
...
...
This diff is collapsed.
Click to expand it.
targets/PROJECTS/GENERIC-LTE-EPC/start_epc.bash
+
9
−
3
View file @
af5e4b17
...
...
@@ -162,7 +162,7 @@ fi
check_install_epc_software
#
check_install_epc_software
##################################
...
...
@@ -329,8 +329,14 @@ PCAP_S6A_LOG_FILE=tshark_mme_s6a.$HOSTNAME.pcap
trap
control_c SIGINT
nohup
tshark
-i
$MME_INTERFACE_NAME_FOR_S1_MME
-w
$THIS_SCRIPT_PATH
/OUTPUT/
$HOSTNAME
/
$PCAP_S1C_LOG_FILE
&
nohup
tshark
-i
$MME_INTERFACE_NAME_FOR_S6A
-w
$THIS_SCRIPT_PATH
/OUTPUT/
$HOSTNAME
/
$PCAP_S6A_LOG_FILE
&
HSS_IP
=
$(
get_ip hss.eur
)
echo_success
"HSS_IP:
$HSS_IP
"
MME_INTERFACE_NAME_FOR_S6A
=
`
ip route get
$HSS_IP
|
grep
$HSS_IP
|
cut
-d
' '
-f
3
`
echo_success
"MME_INTERFACE_NAME_FOR_S1_MME :
$MME_INTERFACE_NAME_FOR_S1_MME
"
echo_success
"MME_INTERFACE_NAME_FOR_S6A :
$MME_INTERFACE_NAME_FOR_S6A
"
nohup
tshark
-i
$MME_INTERFACE_NAME_FOR_S1_MME
-f
"not port 22"
-w
$THIS_SCRIPT_PATH
/OUTPUT/
$HOSTNAME
/
$PCAP_S1C_LOG_FILE
&
nohup
tshark
-i
$MME_INTERFACE_NAME_FOR_S6A
-f
"not port 22"
-w
$THIS_SCRIPT_PATH
/OUTPUT/
$HOSTNAME
/
$PCAP_S6A_LOG_FILE
&
cd
$OPENAIRCN_DIR
/
$OBJ_DIR
...
...
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