dev.cli("show configuration poilicy-options prefix-lists [PREFIX-LIST-NAME] | count")
show configuration policy-options prefix-lists | display xml rpcFor configurational data we have get_config RPC.
You can do for example
op = dev.rpc.get_config(filter_xml = etree.XML('<policy-options><prefix-list/></policy-options>'))
print etree.tostring(op)
How did I concluded above API, so below is the command on device which helped me
# show policy-options prefix-list test | display xml
<rpc-reply xmlns:junos="http://xml.juniper.net/junos/17.2D0/junos">
<configuration junos:changed-seconds="1489078296" junos:changed-localtime="2017-03-09 22:21:36 IST">
<policy-options>
<prefix-list>
<name>test</name>
</prefix-list>
</policy-options>
</configuration>
Thanks
Nitin Kr
--
You received this message because you are subscribed to the Google Groups "Junos Python EZ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
junos-python-...@googlegroups.com.
Visit this group at https://groups.google.com/group/junos-python-ez.
To view this discussion on the web visit
https://groups.google.com/d/msgid/junos-python-ez/4d72f6d0-9084-422b-8153-ac000ceeb641%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To view this discussion on the web visit https://groups.google.com/d/msgid/junos-python-ez/1232571C-0F6B-4864-99A5-0592D4984EA0%40juniper.net.
To unsubscribe from this group and stop receiving emails from it, send an email to junos-python-ez+unsub...@googlegroups.com.
Visit this group at https://groups.google.com/group/junos-python-ez.
To view this discussion on the web visit https://groups.google.com/d/msgid/junos-python-ez/4d72f6d0-9084-422b-8153-ac000ceeb641%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "Junos Python EZ" group.
To unsubscribe from this group and stop receiving emails from it, send an email to junos-python-ez+unsub...@googlegroups.com.