Create hashtag.py
Create hashtag.py

The script displays configuration elements matching a certain value of the 'ht' parameter configured through an apply-macro statement. It helps to display relevant information to a particular customer, or any other object.
See an example below.
--
regress@rppdt-mx480f> op hashtag.py hashtag d39934ce111a864abf40391f3da9cdf5 

## Last commit: 2018-03-07 23:32:35 PST by regress
interfaces {
    interface-set CUSTOMER_0005 {
        apply-macro ht {
            d39934ce111a864abf40391f3da9cdf5;
        }
        interface ae14 {
            vlan-tags-outer 5;
        }
    }
}
## Last commit: 2018-03-07 23:32:35 PST by regress
interfaces {
    ae14 {
        unit 20 {
            apply-macro ht {
                d39934ce111a864abf40391f3da9cdf5;
            }
            forwarding-class-accounting {
                direction both;
            }
            description "to rppdt-mx480a ae14.20 : Customer-5 private_primary";
            vlan-tags outer 5 inner 20;
            family inet {
                filter {
                    output global-private-out-v4;
                    group 2;
                }
                input-hierarchical-policer CUSTOMER_0005-common-in;
                address 10.1.0.34/30;
            }
            family inet6 {
                address fd00:0010:0001:0000:0000:0000:0000:0022/126;
            }
        }
    }
}
Juniper/junoscriptorium,Juniper/junoscriptorium,Juniper/junoscriptorium