Skip to content

Commit

Permalink
pathd: fix space before pcep port in running-config
Browse files Browse the repository at this point in the history
The below running-configuration has extra spaces before the pce
port configuration:

> segment-routing
>  traffic-engineering
>   pce test
>    address ip 192.0.2.2   port 1234
>

Fix this by keeping only one space.

>    address ip 192.0.2.2 port 1234

Fixes: efba098 ("pathd: Add optional support for PCEP to pathd")
Signed-off-by: Philippe Guibert <[email protected]>
  • Loading branch information
pguibert6WIND committed Nov 9, 2023
1 parent 19bcca4 commit acb17c2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pathd/path_pcep_cli.c
Original file line number Diff line number Diff line change
Expand Up @@ -1706,7 +1706,7 @@ int pcep_cli_pce_config_write(struct vty *vty)
&pce_opts->addr.ipaddr_v4);
}
if (pce_opts->port != PCEP_DEFAULT_PORT) {
vty_out(vty, " %s %d", PCEP_VTYSH_ARG_PORT,
vty_out(vty, " %s %d", PCEP_VTYSH_ARG_PORT,
pce_opts->port);
}
vty_out(vty, "%s\n", buf);
Expand Down

0 comments on commit acb17c2

Please sign in to comment.