-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #761 from kernelkit/misc-interface-dhcp
Misc interface dhcp Signed-off-by: Joachim Wiberg <[email protected]>
- Loading branch information
Showing
21 changed files
with
255 additions
and
51 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
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
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
2 changes: 1 addition & 1 deletion
2
package/finit/0001-Only-mark-rdeps-dirty-if-main-service-is-nohup.patch
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 |
---|---|---|
@@ -1,7 +1,7 @@ | ||
From 46ffa81f5c88ce95db011369d8bfb802313e4217 Mon Sep 17 00:00:00 2001 | ||
From: Joachim Wiberg <[email protected]> | ||
Date: Thu, 17 Oct 2024 14:23:24 +0200 | ||
Subject: [PATCH] Only mark rdeps dirty if main service is nohup | ||
Subject: [PATCH 1/2] Only mark rdeps dirty if main service is nohup | ||
Organization: Addiva Elektronik | ||
|
||
This patch changes a behavior that's been default since Finit 4.0, | ||
|
33 changes: 33 additions & 0 deletions
33
package/finit/0002-Reset-color-attributes-and-clear-screen-when-startin.patch
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,33 @@ | ||
From 119e66a7e9c95283918639b51dd03a3d666955f8 Mon Sep 17 00:00:00 2001 | ||
From: Joachim Wiberg <[email protected]> | ||
Date: Mon, 28 Oct 2024 10:58:04 +0100 | ||
Subject: [PATCH 2/2] Reset color attributes and clear screen when starting up | ||
Organization: Addiva Elektronik | ||
|
||
Some boot loaders, like GRUB, leave background color artifacts from | ||
their boot menu. This patch resets the foreground and background | ||
color attributes, and then clears the screen, without clearing the | ||
scrollback buffer. | ||
|
||
Signed-off-by: Joachim Wiberg <[email protected]> | ||
--- | ||
src/helpers.c | 3 +++ | ||
1 file changed, 3 insertions(+) | ||
|
||
diff --git a/src/helpers.c b/src/helpers.c | ||
index 8768de8..99c4557 100644 | ||
--- a/src/helpers.c | ||
+++ b/src/helpers.c | ||
@@ -87,6 +87,9 @@ void console_init(void) | ||
/* Enable line wrap, if disabled previously, e.g., qemu */ | ||
dprint(STDOUT_FILENO, "\033[?7h", 5); | ||
|
||
+ /* Reset atttributes, background and foreground color */ | ||
+ dprint(STDOUT_FILENO, "\033[49m\033[39m\e[2J", 14); | ||
+ | ||
log_init(); | ||
} | ||
|
||
-- | ||
2.43.0 | ||
|
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 |
---|---|---|
|
@@ -37,7 +37,7 @@ MODULES=( | |
"[email protected]" | ||
"[email protected]" | ||
"[email protected]" | ||
"infix-interfaces@2024-10-14.yang -e vlan-filtering" | ||
"infix-interfaces@2024-10-28.yang -e vlan-filtering" | ||
|
||
# from rousette | ||
"[email protected]" | ||
|
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# -*- sh -*- | ||
# REMEMBER TO UPDATE infix-interfaces ALSO IN confd.inc | ||
MODULES=( | ||
"infix-interfaces@2024-10-14.yang -e vlan-filtering -e containers" | ||
"infix-interfaces@2024-10-28.yang -e vlan-filtering -e containers" | ||
"[email protected]" | ||
) |
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 |
---|---|---|
|
@@ -23,6 +23,11 @@ module infix-interfaces { | |
contact "[email protected]"; | ||
description "Linux bridge and lag extensions for ietf-interfaces."; | ||
|
||
revision 2024-10-28 { | ||
description "Limit description to 64 chars, matching IF-MIB max."; | ||
reference "internal"; | ||
} | ||
|
||
revision 2024-10-14 { | ||
description "Deviate link-up-down-trap-enable not-supported."; | ||
reference "internal"; | ||
|
@@ -84,6 +89,18 @@ module infix-interfaces { | |
} | ||
} | ||
|
||
deviation "/if:interfaces/if:interface/if:description" { | ||
deviate replace { | ||
type string { | ||
length "0..64"; | ||
} | ||
} | ||
} | ||
|
||
deviation "/if:interfaces/if:interface/if:link-up-down-trap-enable" { | ||
deviate not-supported; | ||
} | ||
|
||
augment "/if:interfaces/if:interface" { | ||
description "Custom phys-address management, static or derived from chassis MAC."; | ||
|
||
|
@@ -114,7 +131,4 @@ module infix-interfaces { | |
} | ||
} | ||
} | ||
deviation "/if:interfaces/if:interface/if:link-up-down-trap-enable" { | ||
deviate not-supported; | ||
} | ||
} |
File renamed without changes.
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
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,25 @@ | ||
=== Interface Description (ifAlias) | ||
==== Description | ||
Verify interface description (ifAlias) can be set on an interface and | ||
then be read back from the operational datastore. | ||
|
||
==== Topology | ||
ifdef::topdoc[] | ||
image::../../test/case/ietf_interfaces/ifalias/topology.svg[Interface Description (ifAlias) topology] | ||
endif::topdoc[] | ||
ifndef::topdoc[] | ||
ifdef::testgroup[] | ||
image::ifalias/topology.svg[Interface Description (ifAlias) topology] | ||
endif::testgroup[] | ||
ifndef::testgroup[] | ||
image::topology.svg[Interface Description (ifAlias) topology] | ||
endif::testgroup[] | ||
endif::topdoc[] | ||
==== Test sequence | ||
. Set up topology and attach to target DUT | ||
. Set up interface target:data with description | ||
. Verify description can be read back from operational | ||
|
||
|
||
<<< | ||
|
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,36 @@ | ||
#!/usr/bin/env python3 | ||
"""Interface Description (ifAlias) | ||
Verify interface description (ifAlias) can be set on an interface and | ||
then be read back from the operational datastore. | ||
""" | ||
import infamy | ||
import infamy.iface as iface | ||
|
||
with infamy.Test() as test: | ||
with test.step("Set up topology and attach to target DUT"): | ||
env = infamy.Env() | ||
target = env.attach("target", "mgmt") | ||
DESC = "Kilroy was here" | ||
|
||
with test.step("Set up interface target:data with description"): | ||
_, tport = env.ltop.xlate("target", "data") | ||
|
||
target.put_config_dict("ietf-interfaces", { | ||
"interfaces": { | ||
"interface": [ | ||
{ | ||
"name": tport, | ||
"description": DESC, | ||
"enabled": True, | ||
} | ||
] | ||
} | ||
}) | ||
|
||
with test.step("Verify description can be read back from operational"): | ||
text = iface.get_param(target, tport, "description") | ||
if text != DESC: | ||
test.fail() | ||
|
||
test.succeed() |
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 @@ | ||
../../../infamy/topologies/1x2.dot |
Oops, something went wrong.