mirror of
https://dev.iopsys.eu/bbf/bbfdm.git
synced 2025-12-10 07:44:39 +01:00
Updated tr181 xml to 2.19.1
This commit is contained in:
parent
4a3a7ca0b1
commit
805bfc19d7
13 changed files with 3604 additions and 28202 deletions
|
|
@ -5,8 +5,8 @@ echo "Generate xml and xls artifacts"
|
||||||
source ./gitlab-ci/shared.sh
|
source ./gitlab-ci/shared.sh
|
||||||
|
|
||||||
# install required packages
|
# install required packages
|
||||||
exec_cmd apt update
|
exec_cmd sudo apt update
|
||||||
exec_cmd apt install -y python3-pip libxml2-utils
|
exec_cmd sudo apt install -y python3-pip libxml2-utils
|
||||||
exec_cmd pip3 install xlwt
|
exec_cmd pip3 install xlwt
|
||||||
|
|
||||||
if [ -n "${CI_SERVER_HOST}" ]; then
|
if [ -n "${CI_SERVER_HOST}" ]; then
|
||||||
|
|
@ -20,10 +20,11 @@ install_libeasy
|
||||||
install_libethernet
|
install_libethernet
|
||||||
install_libqos
|
install_libqos
|
||||||
|
|
||||||
[ ! -d "${BBFDM_MS_DIR}" ] && mkdir -p "${BBFDM_MS_DIR}"
|
[ ! -d "${BBFDM_MS_DIR}" ] && {
|
||||||
rm -rf ${BBFDM_MS_DIR}/*
|
mkdir -p "${BBFDM_MS_DIR}"
|
||||||
|
rm -rf ${BBFDM_MS_DIR}/*
|
||||||
mkdir -p ${BBFDM_MS_DIR}/core
|
mkdir -p ${BBFDM_MS_DIR}/core
|
||||||
|
}
|
||||||
|
|
||||||
if [ -z "${1}" ]; then
|
if [ -z "${1}" ]; then
|
||||||
./tools/generate_dm.py tools/tools_input.json
|
./tools/generate_dm.py tools/tools_input.json
|
||||||
|
|
|
||||||
|
|
@ -113,9 +113,9 @@ function install_libeasy()
|
||||||
|
|
||||||
cd /opt/dev/libeasy
|
cd /opt/dev/libeasy
|
||||||
exec_cmd make
|
exec_cmd make
|
||||||
mkdir -p /usr/include/easy
|
sudo mkdir -p /usr/include/easy
|
||||||
cp -a libeasy*.so* /usr/lib
|
sudo cp -a libeasy*.so* /usr/lib
|
||||||
cp -a *.h /usr/include/easy/
|
sudo cp -a *.h /usr/include/easy/
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -128,9 +128,9 @@ function install_libqos()
|
||||||
|
|
||||||
cd /opt/dev/libqos
|
cd /opt/dev/libqos
|
||||||
exec_cmd make
|
exec_cmd make
|
||||||
mkdir -p /usr/include/
|
sudo mkdir -p /usr/include/
|
||||||
cp -a libqos*.so* /usr/lib/
|
sudo cp -a libqos*.so* /usr/lib/
|
||||||
cp -a include/*.h /usr/include/
|
sudo cp -a include/*.h /usr/include/
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -142,8 +142,8 @@ function install_libethernet()
|
||||||
(
|
(
|
||||||
cd /opt/dev/libethernet
|
cd /opt/dev/libethernet
|
||||||
make PLATFORM=TEST
|
make PLATFORM=TEST
|
||||||
cp ethernet.h /usr/include
|
sudo cp ethernet.h /usr/include
|
||||||
cp -a libethernet*.so* /usr/lib
|
sudo cp -a libethernet*.so* /usr/lib
|
||||||
sudo ldconfig
|
sudo ldconfig
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
@ -158,7 +158,7 @@ function install_ethmngr_as_micro_service()
|
||||||
|
|
||||||
exec_cmd git clone https://dev.iopsys.eu/hal/ethmngr.git /opt/dev/ethmngr
|
exec_cmd git clone https://dev.iopsys.eu/hal/ethmngr.git /opt/dev/ethmngr
|
||||||
exec_cmd make -C /opt/dev/ethmngr
|
exec_cmd make -C /opt/dev/ethmngr
|
||||||
exec_cmd cp -f /opt/dev/ethmngr/ethmngr /usr/sbin/ethmngr
|
exec_cmd sudo cp -f /opt/dev/ethmngr/ethmngr /usr/sbin/ethmngr
|
||||||
}
|
}
|
||||||
|
|
||||||
function install_netmngr_as_micro_service()
|
function install_netmngr_as_micro_service()
|
||||||
|
|
@ -219,7 +219,7 @@ function error_on_zero()
|
||||||
{
|
{
|
||||||
ret=$1
|
ret=$1
|
||||||
if [ "$ret" -eq 0 ]; then
|
if [ "$ret" -eq 0 ]; then
|
||||||
echo "Validation of last command failed, ret(${ret})"
|
echo "Validation of Last command failed, ret(${ret})"
|
||||||
cp /tmp/memory-*.xml .
|
cp /tmp/memory-*.xml .
|
||||||
exit $ret
|
exit $ret
|
||||||
fi
|
fi
|
||||||
|
|
|
||||||
File diff suppressed because it is too large
Load diff
|
|
@ -59,8 +59,8 @@
|
||||||
https://www.broadband-forum.org/cwmp/cwmp-datamodel-1-15.xsd
|
https://www.broadband-forum.org/cwmp/cwmp-datamodel-1-15.xsd
|
||||||
urn:broadband-forum-org:cwmp:datamodel-report-1-0
|
urn:broadband-forum-org:cwmp:datamodel-report-1-0
|
||||||
https://www.broadband-forum.org/cwmp/cwmp-datamodel-report-1-0.xsd"
|
https://www.broadband-forum.org/cwmp/cwmp-datamodel-report-1-0.xsd"
|
||||||
spec="urn:broadband-forum-org:tr-181-2-19-0-usp"
|
spec="urn:broadband-forum-org:tr-181-2-19-1-usp"
|
||||||
file="tr-181-2-19-0-usp.xml">
|
file="tr-181-2-19-1-usp.xml">
|
||||||
|
|
||||||
<dataType name="_AliasCommon">
|
<dataType name="_AliasCommon">
|
||||||
<description>
|
<description>
|
||||||
|
|
@ -129298,8 +129298,9 @@
|
||||||
The following describes the meaning of the permissions for Object
|
The following describes the meaning of the permissions for Object
|
||||||
type of Targets:
|
type of Targets:
|
||||||
|
|
||||||
# Read: Grants the capability to read the meta-information of the
|
# Read: Grants the capability for Get to resolve Object paths. Grants
|
||||||
Object via GetSupportedDM.
|
the capability to read the meta-information of the Object via
|
||||||
|
GetSupportedDM.
|
||||||
|
|
||||||
# Write: Grants no capabilities for Static Objects. Grants the
|
# Write: Grants no capabilities for Static Objects. Grants the
|
||||||
capability to create a new instance of a Multi-Instanced Object via
|
capability to create a new instance of a Multi-Instanced Object via
|
||||||
File diff suppressed because it is too large
Load diff
File diff suppressed because it is too large
Load diff
|
|
@ -2,7 +2,7 @@ FROM ubuntu:22.04
|
||||||
|
|
||||||
LABEL maintainer="vivek.dutta@iopsys.eu"
|
LABEL maintainer="vivek.dutta@iopsys.eu"
|
||||||
LABEL build="docker build -t bbfdm-tools ."
|
LABEL build="docker build -t bbfdm-tools ."
|
||||||
LABEL run="docker run -it --rm -v ${PWD}/..:/builds/bbfdm bbfdm-tools"
|
LABEL run="docker run -it --rm -v PWD/..:/builds/bbfdm bbfdm-tools"
|
||||||
|
|
||||||
RUN \
|
RUN \
|
||||||
apt-get update && \
|
apt-get update && \
|
||||||
|
|
@ -13,6 +13,17 @@ RUN \
|
||||||
libssl-dev \
|
libssl-dev \
|
||||||
libcurl4-openssl-dev \
|
libcurl4-openssl-dev \
|
||||||
pkg-config \
|
pkg-config \
|
||||||
|
libtool \
|
||||||
|
libnl-3-dev \
|
||||||
|
libnl-genl-3-dev \
|
||||||
|
libnl-route-3-dev \
|
||||||
|
autoconf \
|
||||||
|
automake \
|
||||||
|
autotools-dev \
|
||||||
|
binutils \
|
||||||
|
net-tools \
|
||||||
|
curl \
|
||||||
|
sudo \
|
||||||
git
|
git
|
||||||
|
|
||||||
RUN mkdir /opt/dev
|
RUN mkdir /opt/dev
|
||||||
|
|
@ -50,4 +61,30 @@ RUN \
|
||||||
make -j2 && \
|
make -j2 && \
|
||||||
make install
|
make install
|
||||||
|
|
||||||
ENTRYPOINT ["/bin/bash"]
|
# 1. Create new unprivileged user "dev"
|
||||||
|
# 2. Install fixuid to accomodate for the host machine UID/GID
|
||||||
|
ARG FIXUID_VERSION=0.5.1
|
||||||
|
RUN useradd -m -s /bin/bash dev && \
|
||||||
|
curl -fsSL "https://github.com/boxboat/fixuid/releases/download/v${FIXUID_VERSION}/fixuid-${FIXUID_VERSION}-linux-amd64.tar.gz" | tar -C /usr/local/bin -xzf -
|
||||||
|
|
||||||
|
# Copy fixuid configuration
|
||||||
|
COPY docker/fixuid.yml /etc/fixuid/config.yml
|
||||||
|
|
||||||
|
# Copy git configuration to dev's home folder
|
||||||
|
COPY --chown=dev:dev docker/gitconfig /home/dev/.gitconfig
|
||||||
|
|
||||||
|
RUN echo "dev ALL=(ALL) NOPASSWD:ALL" >> /etc/sudoers.d/10-dev
|
||||||
|
|
||||||
|
ENTRYPOINT ["/usr/local/bin/fixuid", "-q"]
|
||||||
|
CMD ["bash"]
|
||||||
|
|
||||||
|
RUN mkdir -p /builds/bbf/bbfdm /home/dev/.ssh \
|
||||||
|
&& chown -R dev:dev /builds/bbf/bbfdm \
|
||||||
|
&& chown -R dev:dev /home/dev \
|
||||||
|
&& chown -R dev:dev /opt/dev \
|
||||||
|
&& mkdir -p /usr/share/bbfdm \
|
||||||
|
&& chown -R dev:dev /usr/share/bbfdm
|
||||||
|
|
||||||
|
USER dev:dev
|
||||||
|
WORKDIR /builds/bbf/bbfdm
|
||||||
|
VOLUME ["/builds/bbf/bbfdm"]
|
||||||
|
|
|
||||||
|
|
@ -178,7 +178,7 @@ def generate_shared_library(dm_name, source_files, vendor_prefix,
|
||||||
return True
|
return True
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
print(f" Error during compilation: {e}")
|
print(f" Error during compilation: {e}")
|
||||||
return False
|
sys.exit(-1)
|
||||||
|
|
||||||
|
|
||||||
def build_and_install_bbfdm(vendor_prefix):
|
def build_and_install_bbfdm(vendor_prefix):
|
||||||
|
|
@ -204,7 +204,7 @@ def build_and_install_bbfdm(vendor_prefix):
|
||||||
"-DCMAKE_INSTALL_PREFIX=/"
|
"-DCMAKE_INSTALL_PREFIX=/"
|
||||||
]
|
]
|
||||||
make_command = ["make"]
|
make_command = ["make"]
|
||||||
make_install_command = ["make", "install"]
|
make_install_command = ["sudo", "make", "install"]
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subprocess.check_call(cmake_command, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
subprocess.check_call(cmake_command, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||||
|
|
@ -242,7 +242,7 @@ def build_and_install_dmcli():
|
||||||
|
|
||||||
try:
|
try:
|
||||||
subprocess.check_call(gcc_command, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
subprocess.check_call(gcc_command, stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||||
subprocess.check_call(["mv", "dm-cli", "/usr/sbin/dm-cli"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
subprocess.check_call(["sudo", "mv", "dm-cli", "/usr/sbin/dm-cli"], stdout=subprocess.DEVNULL, stderr=subprocess.DEVNULL)
|
||||||
except subprocess.CalledProcessError as e:
|
except subprocess.CalledProcessError as e:
|
||||||
print(f"Error running commands: {e}")
|
print(f"Error running commands: {e}")
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
|
@ -368,6 +368,11 @@ def download_and_build_plugins(plugins, vendor_prefix):
|
||||||
repo_path = None
|
repo_path = None
|
||||||
name = os.path.basename(repo).replace('.git', '')
|
name = os.path.basename(repo).replace('.git', '')
|
||||||
|
|
||||||
|
path = os.path.expanduser("~/.netrc")
|
||||||
|
if not os.path.isfile(path):
|
||||||
|
repo = repo.replace("https://dev.iopsys.eu/", "git@dev.iopsys.eu:")
|
||||||
|
|
||||||
|
print(f"## Repo is {repo}")
|
||||||
if not prefix:
|
if not prefix:
|
||||||
prefix = vendor_prefix
|
prefix = vendor_prefix
|
||||||
|
|
||||||
|
|
|
||||||
8852
tools/datamodel.json
8852
tools/datamodel.json
File diff suppressed because one or more lines are too long
4
tools/docker/fixuid.yml
Normal file
4
tools/docker/fixuid.yml
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
user: dev
|
||||||
|
group: dev
|
||||||
|
paths:
|
||||||
|
- /home/dev
|
||||||
4
tools/docker/gitconfig
Normal file
4
tools/docker/gitconfig
Normal file
|
|
@ -0,0 +1,4 @@
|
||||||
|
[advice]
|
||||||
|
detachedHead = false
|
||||||
|
[credential]
|
||||||
|
helper = store
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
# Set variables
|
# Set variables
|
||||||
CONTAINER_NAME="generate_dm_tools"
|
CONTAINER_NAME="generate_dm_tools"
|
||||||
IMAGE_NAME="dev.iopsys.eu:5050/bbf/bbfdm/tools:latest"
|
IMAGE_NAME="dev.iopsys.eu:5050/bbf/bbfdm/tools:2.0"
|
||||||
INPUT=""
|
INPUT=""
|
||||||
root="${PWD/tools}"
|
root="${PWD/tools}"
|
||||||
|
|
||||||
|
|
@ -23,9 +23,9 @@ usages()
|
||||||
runner()
|
runner()
|
||||||
{
|
{
|
||||||
# Create and start the Docker container
|
# Create and start the Docker container
|
||||||
docker run --rm -it -v"${root}:/bbfdm" -w "/bbfdm" \
|
docker run --rm -it -v ~/.ssh:/home/dev/.ssh -v"${root}:/builds/bbf/bbfdm" \
|
||||||
--entrypoint=/bin/bash --name "$CONTAINER_NAME" "$IMAGE_NAME" \
|
--entrypoint=/bin/bash --name "$CONTAINER_NAME" "$IMAGE_NAME" \
|
||||||
-c "./gitlab-ci/generate_supported_dm.sh /bbfdm/${1}"
|
-c "./gitlab-ci/generate_supported_dm.sh ${1}"
|
||||||
}
|
}
|
||||||
|
|
||||||
while getopts n:I:i:h opts
|
while getopts n:I:i:h opts
|
||||||
|
|
|
||||||
|
|
@ -443,6 +443,18 @@
|
||||||
"-I libdm/common"
|
"-I libdm/common"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"repo": "https://dev.iopsys.eu/voice/tr104.git",
|
||||||
|
"proto": "git",
|
||||||
|
"version": "devel",
|
||||||
|
"dm_files": [
|
||||||
|
"libdm/extensions/iowrt/*.c"
|
||||||
|
],
|
||||||
|
"extra_dependencies": [
|
||||||
|
"-I /builds/bbf/bbfdm/libbbfdm-api/legacy",
|
||||||
|
"-I libdm/common"
|
||||||
|
]
|
||||||
|
},
|
||||||
{
|
{
|
||||||
"repo": "https://dev.iopsys.eu/system/logmngr.git",
|
"repo": "https://dev.iopsys.eu/system/logmngr.git",
|
||||||
"proto": "git",
|
"proto": "git",
|
||||||
|
|
@ -470,18 +482,6 @@
|
||||||
"bbf_plugin/common.c"
|
"bbf_plugin/common.c"
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"repo": "https://dev.iopsys.eu/voice/tr104.git",
|
|
||||||
"proto": "git",
|
|
||||||
"version": "devel",
|
|
||||||
"dm_files": [
|
|
||||||
"libdm/extensions/iowrt/*.c"
|
|
||||||
],
|
|
||||||
"extra_dependencies": [
|
|
||||||
"-I /builds/bbf/bbfdm/libbbfdm-api/legacy",
|
|
||||||
"-I libdm/common"
|
|
||||||
]
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
"repo": "https://dev.iopsys.eu/feed/gnx.git",
|
"repo": "https://dev.iopsys.eu/feed/gnx.git",
|
||||||
"proto": "git",
|
"proto": "git",
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue