Add script to regenerate VTY and counter documentation
This script needs access to the VTY interface, so I changed some remaining config files to bind the VTY interface to 0.0.0.0. There are a couple of services that do that already. Related: OS#1700 Change-Id: Ic5cf7f59de0c18d4c5568b89433c2b11db2a72a5
This commit is contained in:
parent
b40355a588
commit
3b96cf3bb4
|
@ -46,6 +46,7 @@ stats interval 5
|
||||||
!
|
!
|
||||||
line vty
|
line vty
|
||||||
no login
|
no login
|
||||||
|
bind 0.0.0.0
|
||||||
!
|
!
|
||||||
e1_input
|
e1_input
|
||||||
e1_line 0 driver ipa
|
e1_line 0 driver ipa
|
||||||
|
|
|
@ -11,6 +11,7 @@ log stderr
|
||||||
logging level linp error
|
logging level linp error
|
||||||
!
|
!
|
||||||
line vty
|
line vty
|
||||||
|
no login
|
||||||
bind 0.0.0.0
|
bind 0.0.0.0
|
||||||
ctrl
|
ctrl
|
||||||
bind 0.0.0.0
|
bind 0.0.0.0
|
||||||
|
|
|
@ -19,6 +19,9 @@ log stderr
|
||||||
logging level lctrl notice
|
logging level lctrl notice
|
||||||
logging level lgtp notice
|
logging level lgtp notice
|
||||||
logging level lstats notice
|
logging level lstats notice
|
||||||
|
line vty
|
||||||
|
no login
|
||||||
|
bind 0.0.0.0
|
||||||
cs7 instance 0
|
cs7 instance 0
|
||||||
point-code 0.23.5
|
point-code 0.23.5
|
||||||
asp asp-clnt-OsmoHNBGW 2905 0 m3ua
|
asp asp-clnt-OsmoHNBGW 2905 0 m3ua
|
||||||
|
|
|
@ -31,6 +31,7 @@ stats interval 5
|
||||||
!
|
!
|
||||||
line vty
|
line vty
|
||||||
no login
|
no login
|
||||||
|
bind 0.0.0.0
|
||||||
!
|
!
|
||||||
mgcp
|
mgcp
|
||||||
bind ip 172.18.0.180
|
bind ip 172.18.0.180
|
||||||
|
|
|
@ -3,6 +3,7 @@
|
||||||
!
|
!
|
||||||
line vty
|
line vty
|
||||||
no login
|
no login
|
||||||
|
bind 0.0.0.0
|
||||||
!
|
!
|
||||||
network
|
network
|
||||||
network country code 1
|
network country code 1
|
||||||
|
|
|
@ -1,3 +1,6 @@
|
||||||
|
line vty
|
||||||
|
no login
|
||||||
|
bind 0.0.0.0
|
||||||
app
|
app
|
||||||
mncc
|
mncc
|
||||||
socket-path /tmp/bsc_mncc
|
socket-path /tmp/bsc_mncc
|
||||||
|
|
|
@ -0,0 +1,43 @@
|
||||||
|
#!/bin/sh +x
|
||||||
|
|
||||||
|
. ../jenkins-common.sh
|
||||||
|
|
||||||
|
NAME="$1"
|
||||||
|
PORT="$2"
|
||||||
|
COUNTERFILE="$3"
|
||||||
|
VTYFILE="$4"
|
||||||
|
|
||||||
|
IMAGE_SUFFIX="${IMAGE_SUFFIX:-master}"
|
||||||
|
if [ -z "$OSMO_INTERACT_VTY" ]; then
|
||||||
|
OSMO_INTERACT_VTY="osmo-interact-vty.py"
|
||||||
|
fi
|
||||||
|
|
||||||
|
docker_images_require \
|
||||||
|
"$NAME-$IMAGE_SUFFIX"
|
||||||
|
|
||||||
|
network_create 172.18.12.0/24
|
||||||
|
|
||||||
|
container_create() {
|
||||||
|
CONTAINERNAME=$1
|
||||||
|
IP_ADDR=$2
|
||||||
|
|
||||||
|
docker run --rm --network ${NET_NAME} --ip ${IP_ADDR} \
|
||||||
|
--name ${BUILD_TAG}-${CONTAINERNAME} -d \
|
||||||
|
${REPO_USER}/${CONTAINERNAME}
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
container_create "$NAME-$IMAGE_SUFFIX" 172.18.12.23
|
||||||
|
|
||||||
|
# Get asciidoc counter info
|
||||||
|
${OSMO_INTERACT_VTY} \
|
||||||
|
-c "enable;show asciidoc counters" -p "$PORT" -H 172.18.12.23 -O "$COUNTERFILE"
|
||||||
|
|
||||||
|
# Get vty reference
|
||||||
|
${OSMO_INTERACT_VTY} \
|
||||||
|
-X -p "$PORT" -H 172.18.12.23 -O "$VTYFILE"
|
||||||
|
|
||||||
|
docker container kill "${BUILD_TAG}-$NAME-$IMAGE_SUFFIX"
|
||||||
|
|
||||||
|
network_remove
|
Loading…
Reference in New Issue