"show configuration | display set" is missing some aspects of the
configuration, namely annotations (comments).  What else is it
missing?  Would Juniper please consider making the entire
configuration representable in set-style format, including
annotations?

It is handy for example to annotate prefix-list items, but you can
apply annotate on almost any part of the configuration:

----------------------------------------------------------------------
{master:0}[edit]
user@router# edit policy-options prefix-list FOO

{master:0}[edit policy-options prefix-list FOO]
user@router# show
10.1.1.1/32;
20.2.2.2/32;
30.3.3.3/32;

{master:0}[edit policy-options prefix-list FOO]
user@router# annotate 10.1.1.1/32 "server 1"

{master:0}[edit policy-options prefix-list FOO]
user@router# annotate 20.2.2.2/32 "peer 2"

{master:0}[edit policy-options prefix-list FOO]
user@router# annotate 30.3.3.3/32 "bad guy 3"

{master:0}[edit policy-options prefix-list FOO]
user@router# show
/* server 1 */
10.1.1.1/32;
/* peer 2 */
20.2.2.2/32;
/* bad guy 3 */
30.3.3.3/32;

{master:0}[edit]
user@router# top

{master:0}[edit]
user@router# show | find FOO
    prefix-list FOO {
        /* server 1 */
        10.1.1.1/32;
        /* peer 2 */
        20.2.2.2/32;
        /* bad guy 3 */
        30.3.3.3/32;
    }
}

{master:0}[edit]
user@router# show policy-options prefix-list FOO | display set
set policy-options prefix-list FOO 10.1.1.1/32
set policy-options prefix-list FOO 20.2.2.2/32
set policy-options prefix-list FOO 30.3.3.3/32
----------------------------------------------------------------------

Tagging configuration items with "deactivate" or "protect" does show
up in set-style:

----------------------------------------------------------------------
{master:0}[edit]
user@router# edit policy-options prefix-list FOO

{master:0}[edit policy-options prefix-list FOO]
user@router# deactivate 20.2.2.2/32

{master:0}[edit policy-options prefix-list FOO]
user@router# protect 30.3.3.3/32

{master:0}[edit policy-options prefix-list FOO]
user@router# show
/* server 1 */
10.1.1.1/32;
/* peer 2 */
inactive: 20.2.2.2/32;
/* bad guy 3 */
protect: 30.3.3.3/32;

{master:0}[edit policy-options prefix-list FOO]
user@router# show | display set
set policy-options prefix-list FOO 10.1.1.1/32
set policy-options prefix-list FOO 20.2.2.2/32
deactivate policy-options prefix-list FOO 20.2.2.2/32
set policy-options prefix-list FOO 30.3.3.3/32
protect policy-options prefix-list FOO 30.3.3.3/32
----------------------------------------------------------------------

So why not "annotate"?
_______________________________________________
juniper-nsp mailing list juniper-nsp@puck.nether.net
https://puck.nether.net/mailman/listinfo/juniper-nsp

Reply via email to