mirror of
https://github.com/FRRouting/frr.git
synced 2025-04-30 13:37:17 +02:00
ospfclient: add ospfclient api python class
Signed-off-by: Christian Hopps <chopps@labn.net>
This commit is contained in:
parent
bd1188f904
commit
9191ac86fd
1
debian/frr-pythontools.install
vendored
1
debian/frr-pythontools.install
vendored
|
@ -1,3 +1,4 @@
|
||||||
usr/lib/frr/frr-reload.py
|
usr/lib/frr/frr-reload.py
|
||||||
usr/lib/frr/generate_support_bundle.py
|
usr/lib/frr/generate_support_bundle.py
|
||||||
usr/lib/frr/frr_babeltrace.py
|
usr/lib/frr/frr_babeltrace.py
|
||||||
|
usr/lib/frr/ospfclient.py
|
||||||
|
|
|
@ -212,7 +212,8 @@ options from the list below.
|
||||||
|
|
||||||
.. option:: --disable-ospfclient
|
.. option:: --disable-ospfclient
|
||||||
|
|
||||||
Disable building of the example OSPF-API client.
|
Disable installation of the python ospfclient and building of the example
|
||||||
|
OSPF-API client.
|
||||||
|
|
||||||
.. option:: --disable-isisd
|
.. option:: --disable-isisd
|
||||||
|
|
||||||
|
|
1133
ospfclient/ospfclient.py
Executable file
1133
ospfclient/ospfclient.py
Executable file
File diff suppressed because it is too large
Load diff
|
@ -6,6 +6,10 @@ if OSPFCLIENT
|
||||||
lib_LTLIBRARIES += ospfclient/libfrrospfapiclient.la
|
lib_LTLIBRARIES += ospfclient/libfrrospfapiclient.la
|
||||||
noinst_PROGRAMS += ospfclient/ospfclient
|
noinst_PROGRAMS += ospfclient/ospfclient
|
||||||
#man8 += $(MANBUILD)/frr-ospfclient.8
|
#man8 += $(MANBUILD)/frr-ospfclient.8
|
||||||
|
|
||||||
|
sbin_SCRIPTS += \
|
||||||
|
ospfclient/ospfclient.py \
|
||||||
|
# end
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ospfclient_libfrrospfapiclient_la_LDFLAGS = $(LIB_LDFLAGS) -version-info 0:0:0
|
ospfclient_libfrrospfapiclient_la_LDFLAGS = $(LIB_LDFLAGS) -version-info 0:0:0
|
||||||
|
@ -41,3 +45,7 @@ endif
|
||||||
ospfclient_ospfclient_SOURCES = \
|
ospfclient_ospfclient_SOURCES = \
|
||||||
ospfclient/ospfclient.c \
|
ospfclient/ospfclient.c \
|
||||||
# end
|
# end
|
||||||
|
|
||||||
|
EXTRA_DIST += \
|
||||||
|
ospfclient/ospfclient.py \
|
||||||
|
# end
|
||||||
|
|
|
@ -466,6 +466,9 @@ install -d -m750 %{buildroot}%{rundir}
|
||||||
# avoid `ERROR: ambiguous python shebang in` errors
|
# avoid `ERROR: ambiguous python shebang in` errors
|
||||||
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}/usr/lib/frr/*.py
|
pathfix.py -pni "%{__python3} %{py3_shbang_opts}" %{buildroot}/usr/lib/frr/*.py
|
||||||
%py_byte_compile %{__python3} %{buildroot}/usr/lib/frr/*.py
|
%py_byte_compile %{__python3} %{buildroot}/usr/lib/frr/*.py
|
||||||
|
%else
|
||||||
|
# remove ospfclient.py (if present) as it requires > python36
|
||||||
|
rm -f %{buildroot}%{_sbindir}/ospfclient.py
|
||||||
%endif
|
%endif
|
||||||
|
|
||||||
%pre
|
%pre
|
||||||
|
@ -719,11 +722,13 @@ fi
|
||||||
%files contrib
|
%files contrib
|
||||||
%doc tools
|
%doc tools
|
||||||
|
|
||||||
|
|
||||||
%files pythontools
|
%files pythontools
|
||||||
%{_sbindir}/generate_support_bundle.py
|
%{_sbindir}/generate_support_bundle.py
|
||||||
%{_sbindir}/frr-reload.py
|
%{_sbindir}/frr-reload.py
|
||||||
%{_sbindir}/frr_babeltrace.py
|
%{_sbindir}/frr_babeltrace.py
|
||||||
|
%if %{with_ospfclient} && (0%{?rhel} > 7 || 0%{?fedora} > 29)
|
||||||
|
%{_sbindir}/ospfclient.py
|
||||||
|
%endif
|
||||||
%if 0%{?rhel} > 7 || 0%{?fedora} > 29
|
%if 0%{?rhel} > 7 || 0%{?fedora} > 29
|
||||||
%{_sbindir}/__pycache__/*
|
%{_sbindir}/__pycache__/*
|
||||||
%else
|
%else
|
||||||
|
@ -774,6 +779,10 @@ sed -i 's/ -M rpki//' %{_sysconfdir}/frr/daemons
|
||||||
|
|
||||||
|
|
||||||
%changelog
|
%changelog
|
||||||
|
* Sun May 29 2022 Christian Hopps <chopps@labn.net> - %{version}
|
||||||
|
- ospfclient:
|
||||||
|
- Add OSPF API python client ospfclient.py
|
||||||
|
|
||||||
* Tue Mar 1 2022 Martin Winter <mwinter@opensourcerouting.org> - %{version}
|
* Tue Mar 1 2022 Martin Winter <mwinter@opensourcerouting.org> - %{version}
|
||||||
|
|
||||||
* Tue Mar 1 2022 Jafar Al-Gharaibeh <jafar@atcorp.com> - 8.2
|
* Tue Mar 1 2022 Jafar Al-Gharaibeh <jafar@atcorp.com> - 8.2
|
||||||
|
|
Loading…
Reference in a new issue