Currently, when running strip-private against op commands that contain IPs (both IPv4 and IPv6), the values get stripped to static values for the first 2 octets/hextets (i.e. xxx.xxx and xxxx:xxxx). This breaks output if those values didn't have the same length originally.
Example (note position of u/u):
vyos@vyos:~$ show interfaces ethernet | match "Interface|---|eth0.101" Interface IP Address S/L Description --------- ---------- --- ----------- eth0.101 10.0.101.237/24 u/u vyos@vyos:~$ show interfaces ethernet | strip-private | match "Interface|---|eth0.101" Interface IP Address S/L Description --------- ---------- --- ----------- eth0.101 xxx.xxx.101.237/24 u/u
After the change, the stripped IP should have the same length as it had originally. This maintains the integrity of the original output:
vyos@vyos:~$ show interfaces ethernet | strip-private | match "Interface|---|eth0.101" Interface IP Address S/L Description --------- ---------- --- ----------- eth0.101 xx.x.101.237/24 u/u