-
Notifications
You must be signed in to change notification settings - Fork 1.8k
[dhcp-relay]: Add DHCP Relay Monitor #3886
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
tahmed-dev
merged 9 commits into
sonic-net:master
from
tahmed-dev:taahme/add-dhcp-relay-monitor
Jan 8, 2020
Merged
Changes from all commits
Commits
Show all changes
9 commits
Select commit
Hold shift + click to select a range
eec9929
[dhcp-relay]: Add DHCP Relay Monitor
tahmed-dev 50fd615
[dhcp-relay]: Add DHCP Relay Monitor
tahmed-dev f379668
[dhcp-relay]: Add DHCP Relay Monitor
tahmed-dev f37ddae
[dhcp-relay]: Add DHCP Relay Monitor
tahmed-dev c5e728a
[dhcp-relay] Add DHCP Monitor
tahmed-dev db09d40
Addressing PR comments. Also, added a couple of log line when externa…
tahmed-dev 193266d
Adding sigterm back in and also cleaning up upon graceful exit.
tahmed-dev 3279b22
Updating .gitignore per review comments.
tahmed-dev 19c24bc
Changing .gitignore as per review comment
tahmed-dev File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # SONiC DHCP MONitor package | ||
|
|
||
| SONIC_DHCPMON_VERSION = 1.0.0-0 | ||
| SONIC_DHCPMON_PKG_NAME = dhcpmon | ||
|
|
||
| SONIC_DHCPMON = sonic-$(SONIC_DHCPMON_PKG_NAME)_$(SONIC_DHCPMON_VERSION)_$(CONFIGURED_ARCH).deb | ||
| $(SONIC_DHCPMON)_SRC_PATH = $(SRC_PATH)/$(SONIC_DHCPMON_PKG_NAME) | ||
| SONIC_DPKG_DEBS += $(SONIC_DHCPMON) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,44 @@ | ||
| RM := rm -rf | ||
| DHCPMON_TARGET := dhcpmon | ||
| CP := cp | ||
| MKDIR := mkdir | ||
| CC := gcc | ||
| MV := mv | ||
|
|
||
| # All of the sources participating in the build are defined here | ||
| -include src/subdir.mk | ||
| -include objects.mk | ||
|
|
||
| ifneq ($(MAKECMDGOALS),clean) | ||
| ifneq ($(strip $(C_DEPS)),) | ||
| -include $(C_DEPS) | ||
| endif | ||
| endif | ||
|
|
||
| # Add inputs and outputs from these tool invocations to the build variables | ||
|
|
||
| # All Target | ||
| all: sonic-dhcpmon | ||
|
|
||
| # Tool invocations | ||
| sonic-dhcpmon: $(OBJS) $(USER_OBJS) | ||
| @echo 'Building target: $@' | ||
| @echo 'Invoking: GCC C Linker' | ||
| $(CC) -o "$(DHCPMON_TARGET)" $(OBJS) $(USER_OBJS) $(LIBS) | ||
| @echo 'Finished building target: $@' | ||
| @echo ' ' | ||
|
|
||
| # Other Targets | ||
| install: | ||
| $(MKDIR) -p $(DESTDIR)/usr/sbin | ||
| $(MV) $(DHCPMON_TARGET) $(DESTDIR)/usr/sbin | ||
|
|
||
| deinstall: | ||
| $(RM) $(DESTDIR)/usr/sbin/$(DHCPMON_TARGET) | ||
| $(RM) -rf $(DESTDIR)/usr/sbin | ||
|
|
||
| clean: | ||
| -$(RM) $(EXECUTABLES)$(OBJS)$(C_DEPS) $(DHCPMON_TARGET) | ||
| -@echo ' ' | ||
|
|
||
| .PHONY: all clean dependents |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,5 @@ | ||
| sonic-dhcpmon (1.0.0-0) UNRELEASED; urgency=medium | ||
|
|
||
| * Initial release. | ||
|
|
||
| -- Tamer Ahmed <tamer.ahmed@microsoft.com> Mon, 09 Dec 2019 12:00:00 -0700 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1 @@ | ||
| 9 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,16 @@ | ||
| Source: sonic-dhcpmon | ||
| Section: devel | ||
| Priority: optional | ||
| Maintainer: Tamer Ahmed <tamer.ahmed@microsoft.com> | ||
| Build-Depends: debhelper (>= 8.0.0), | ||
| dh-systemd | ||
| Standards-Version: 3.9.3 | ||
| Homepage: https://github.com/Azure/sonic-buildimage | ||
| XS-Go-Import-Path: github.com/Azure/sonic-buildimage | ||
|
|
||
| Package: sonic-dhcpmon | ||
| Architecture: any | ||
| Built-Using: ${misc:Built-Using} | ||
| Depends: libexplain51, | ||
| libevent-2.0-5 | ||
| Description: SONiC DHCP Monitor |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,3 @@ | ||
| #!/usr/bin/make -f | ||
| %: | ||
| dh $@ --with systemd |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| USER_OBJS := | ||
|
|
||
| LIBS := -levent -lexplain | ||
|
|
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.