Add padding to IS-IS hello packets.
-.. clicmd:: isis hello padding sometimes
+.. clicmd:: isis hello padding during-adjacency-formation
Add padding to IS-IS hello packets during adjacency formation only.
vty_out(vty, " no " PROTO_NAME " hello padding\n");
write++;
break;
- case ISIS_HELLO_PADDING_SOMETIMES:
+ case ISIS_HELLO_PADDING_DURING_ADJACENCY_FORMATION:
vty_out(vty, PROTO_NAME
- " hello padding sometimes\n");
+ " hello padding during-adjacency-formation\n");
write++;
break;
case ISIS_HELLO_PADDING_ALWAYS:
enum isis_hello_padding {
ISIS_HELLO_PADDING_ALWAYS,
ISIS_HELLO_PADDING_DISABLED,
- ISIS_HELLO_PADDING_SOMETIMES
+ ISIS_HELLO_PADDING_DURING_ADJACENCY_FORMATION
};
struct isis_circuit {
* XPath: /frr-interface:lib/interface/frr-isisd:isis/hello/padding
*/
DEFPY_YANG(isis_hello_padding, isis_hello_padding_cmd,
- "[no] isis hello padding [sometimes]$padding_type",
+ "[no] isis hello padding [during-adjacency-formation]$padding_type",
NO_STR
"IS-IS routing protocol\n"
"Type of padding for IS-IS hello packets\n"
if (hello_padding_type == ISIS_HELLO_PADDING_DISABLED)
vty_out(vty, " no");
vty_out(vty, " isis hello padding");
- if (hello_padding_type == ISIS_HELLO_PADDING_SOMETIMES)
- vty_out(vty, " sometimes");
+ if (hello_padding_type == ISIS_HELLO_PADDING_DURING_ADJACENCY_FORMATION)
+ vty_out(vty, " during-adjacency-formation");
vty_out(vty, "\n");
}
switch (hello_padding_type) {
case ISIS_HELLO_PADDING_DISABLED:
return "no";
- case ISIS_HELLO_PADDING_SOMETIMES:
- return "sometimes";
+ case ISIS_HELLO_PADDING_DURING_ADJACENCY_FORMATION:
+ return "during-adjacency-formation";
case ISIS_HELLO_PADDING_ALWAYS:
return "yes";
}
bool should_pad_hello =
circuit->pad_hellos == ISIS_HELLO_PADDING_ALWAYS ||
- (circuit->pad_hellos == ISIS_HELLO_PADDING_SOMETIMES &&
+ (circuit->pad_hellos ==
+ ISIS_HELLO_PADDING_DURING_ADJACENCY_FORMATION &&
circuit->upadjcount[0] + circuit->upadjcount[1] == 0);
if (isis_pack_tlvs(tlvs, circuit->snd_stream, len_pointer,
* return false if lan hellos must be padded
*/
if (circuit->pad_hellos == ISIS_HELLO_PADDING_ALWAYS ||
- (circuit->pad_hellos == ISIS_HELLO_PADDING_SOMETIMES &&
+ (circuit->pad_hellos ==
+ ISIS_HELLO_PADDING_DURING_ADJACENCY_FORMATION &&
circuit->upadjcount[0] + circuit->upadjcount[1] == 0))
return SNMP_INTEGER(ISIS_SNMP_TRUTH_VALUE_FALSE);
assert result is True, result
-def test_isis_hello_padding_sometimes():
+def test_isis_hello_padding_during_adjacency_formation():
"""Check that IIH packets is only padded when adjacency is still being formed
- when isis hello padding sometimes is configured
+ when isis hello padding during-adjacency-formation is configured
"""
tgen = get_topogen()
net = get_topogen().net
if tgen.routers_have_failure():
pytest.skip(tgen.errors)
- logger.info("Testing isis hello padding sometimes behavior")
+ logger.info("Testing isis hello padding during-adjacency-formation behavior")
r3 = tgen.gears["r3"]
# Reduce hello-multiplier to make the adjacency go down faster.
"""
configure
interface r1-eth0
- isis hello padding sometimes
+ isis hello padding during-adjacency-formation
end
debug isis adj-packets
"""
description
"Do not add any padding to hello packets.";
}
- enum "sometimes" {
+ enum "during-adjacency-formation" {
value 2;
description
"Add padding to hello packets during adjacency formation only.";