Skip to content

Commit

Permalink
Modified gnoi as a sub-module for gnoi reboot feature
Browse files Browse the repository at this point in the history
  • Loading branch information
rkavitha-hcl authored and KAVITHA RAMALINGAM committed Dec 6, 2024
1 parent ad96646 commit 343a64c
Show file tree
Hide file tree
Showing 107 changed files with 28 additions and 38,505 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
Expand Up @@ -130,3 +130,6 @@
[submodule "src/sonic-stp"]
path = src/sonic-stp
url = https://github.com/sonic-net/sonic-stp
[submodule "src/sonic-framework/gnoi"]
path = src/sonic-framework/gnoi
url = https://github.com/openconfig/gnoi
15 changes: 11 additions & 4 deletions src/sonic-framework/Makefile.am
Original file line number Diff line number Diff line change
@@ -1,19 +1,26 @@
.PHONY: compile_protobufs
AUTOMAKE_OPTIONS = subdir-objects
INCLUDES = -I ../sonic-swss-common/common
INCLUDES = -I ../sonic-swss-common/common -Ibuild/gen -Ibuild/gen/github.com/openconfig/gnoi
BUILT_SOURCES = rebootbackend_protobuf_compilation rebootbackend_dbus_compilation

compile_protobufs: rebootbackend_protobuf_compilation rebootbackend_dbus_compilation

rebootbackend_protobuf_compilation:
/usr/bin/protoc --cpp_out=rebootbackend \
--proto_path=gnoi \
mkdir -p build/gen
/usr/bin/protoc --cpp_out=build/gen \
--proto_path=github.com/openconfig/gnoi=gnoi \
gnoi/types/types.proto \
gnoi/common/common.proto \
gnoi/system/system.proto

rebootbackend_dbus_compilation:
rebootbackend_dbus_compilation: build/gen/librebgnoi.la
/usr/bin/dbusxx-xml2cpp rebootbackend/gnoi_reboot.xml \
--proxy=rebootbackend/gnoi_reboot_dbus.h

lib_LTLIBRARIES = build/gen/librebgnoi.la
build_gen_librebgnoi_la_SOURCES = \
build/gen/github.com/openconfig/gnoi/system/system.pb.cc \
build/gen/github.com/openconfig/gnoi/types/types.pb.cc \
build/gen/github.com/openconfig/gnoi/common/common.pb.cc

SUBDIRS = rebootbackend
1 change: 1 addition & 0 deletions src/sonic-framework/gnoi
Submodule gnoi added at 73a1e7
28 changes: 0 additions & 28 deletions src/sonic-framework/gnoi/BUILD.bazel

This file was deleted.

26 changes: 0 additions & 26 deletions src/sonic-framework/gnoi/CONTRIBUTING.md

This file was deleted.

1 change: 0 additions & 1 deletion src/sonic-framework/gnoi/CONTRIBUTORS

This file was deleted.

201 changes: 0 additions & 201 deletions src/sonic-framework/gnoi/LICENSE

This file was deleted.

6 changes: 0 additions & 6 deletions src/sonic-framework/gnoi/MODULE.bazel

This file was deleted.

Loading

0 comments on commit 343a64c

Please sign in to comment.