-
Notifications
You must be signed in to change notification settings - Fork 35
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Initial release Signed-off-by: Rajendra Dendukuri <[email protected]>
- Loading branch information
1 parent
917b8ed
commit 374c9e8
Showing
62 changed files
with
15,051 additions
and
2 deletions.
There are no files selected for viewing
This file contains 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 @@ | ||
/*-stamp | ||
/debian/.debhelper/ | ||
/debian/*.debhelper | ||
/debian/*.debhelper.* | ||
/debian/debhelper-build-stamp | ||
/debian/files | ||
/debian/*.substvars | ||
/debian/sonic-ztp | ||
/doc/html |
This file contains 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 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,23 @@ | ||
PKG := sonic-ztp | ||
all: $(PKG) | ||
|
||
.PHONY: doc | ||
|
||
doc: | ||
@doxygen doc/Doxyfile | ||
|
||
$(PKG): | ||
@fakeroot debian/rules clean | ||
@fakeroot debian/rules binary-indep | ||
|
||
clean: | ||
@rm -rf debian/$(PKG) | ||
@rm -f debian/$(PKG).debhelper.log | ||
@rm -f debian/$(PKG).postinst.debhelper | ||
@rm -f debian/$(PKG).postrm.debhelper | ||
@rm -f debian/$(PKG).prerm.debhelper | ||
@rm -f debian/$(PKG).substvars | ||
@rm -f debian/debhelper-build-stamp | ||
@rm -f debian/files | ||
@rm -rf doc/html | ||
@rm -f $(PKG)_*_all.deb |
This file contains 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 @@ | ||
[SONiC ZTP High Level Design]: https://github.com/Azure/SONiC/blob/master/doc/ztp/ztp.md |
This file contains 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-ztp (1.0.0) unstable; urgency=low | ||
|
||
* Initial release. | ||
|
||
-- Rajendra Dendukuri <[email protected]> Mon, 7 Jul 2019 17:17:17 -0500 |
This file contains 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 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,17 @@ | ||
Source: sonic-ztp | ||
Maintainer: Rajendra Dendukuri <[email protected]> | ||
Uploaders: Olivier Singla <[email protected]> | ||
Section: devel | ||
Priority: optional | ||
Build-Depends: debhelper (>= 8.0.0), | ||
dh-systemd | ||
Standards-Version: 3.9.3 | ||
Homepage: https://github.com/Azure/sonic-ztp | ||
|
||
Package: sonic-ztp | ||
Architecture: all | ||
Depends: python3, | ||
curl, | ||
ifupdown2 (>=1.2.8), | ||
isc-dhcp-client | ||
Description: Zero Touch Provisioning for switches running SONiC |
This file contains 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 @@ | ||
src/usr/lib/ztp/* usr/lib/ztp | ||
src/usr/bin/* usr/bin | ||
src/etc/dhcp/dhclient-exit-hooks.d/* etc/dhcp/dhclient-exit-hooks.d | ||
src/etc/dhcp/dhclient-enter-hooks.d/* etc/dhcp/dhclient-enter-hooks.d | ||
src/etc/default/ztp etc/default | ||
src/etc/logrotate.d/* etc/logrotate.d | ||
tests/* usr/lib/ztp/tests | ||
src/usr/lib/python3/dist-packages/ztp /usr/lib/python3/dist-packages |
This file contains 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,12 @@ | ||
#!/usr/bin/make -f | ||
|
||
#export DH_VERBOSE=1 | ||
|
||
%: | ||
@dh $@ --parallel | ||
|
||
override_dh_auto_install: | ||
dh_systemd_enable -p sonic-ztp --name=ztp | ||
|
||
override_dh_auto_build: | ||
|
This file contains 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 @@ | ||
/var/lib/ztp/tmp | ||
/var/lib/ztp/sections | ||
/var/run/ztp |
This file contains 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 @@ | ||
[Unit] | ||
Description=SONiC Zero Touch Provisioning service | ||
Wants=config-setup.service | ||
After=config-setup.service interfaces-config.service | ||
|
||
[Service] | ||
EnvironmentFile=-/etc/default/ztp | ||
ExecStart=/usr/lib/ztp/sonic-ztp | ||
StandardOutput=syslog | ||
StandardError=syslog+console | ||
UMask=177 | ||
User=root | ||
Group=root | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
Oops, something went wrong.