""" bgpevpnvpws.py: This script intends to demonstrate how to use NGPF BGP EVPN-VPWS API. About Topology: It will create 2 BGP EVPN-VPWS topologies, each having LDP configured in connected Device Group .BGP EVPN-VPWS configured in chained device group along with Mac pools connected behind the chained Device Group. Script Flow: Step 1. Configuration of protocols. Configuration flow of the script is as follow: i. Adding of Ethernet and IP within both topologies, ii. Ading and configuration of OSPF and LDP router over IP iii. Adding of Route Range behind DG of each topology iv. Configuring loopback address as Router ID v. Adding of chain DG for both topologies, act as PE router vi. Adding of BGP over loopback address within chained DG in both topologies vii. Adding of EVPN-VPWS EVI over BGP within both topologies viii. Adding of MAC cloud behind each EVPN-VPWS EVI ix. Configuring VPWS Service Id and service Id along with label value and No. of MAC pools 2. Start all protocol. 3. Retrieve protocol statistics. 4. Retrieve protocol learned info. 5. Configure L2-L3 traffic. 6. Start the L2-L3 traffic. 7. Retrieve L2-L3 traffic stats. 8. Stop L2-L3 traffic. 9. Stop all protocols. Supports IxNetwork API servers: - Windows, Windows Connection Mgr and Linux Requirements: - IxNetwork 9.00 - Python 2.7 and 3+ - pip install requests - pip install ixnetwork_restpy (minimum version 1.0.51) RestPy Doc: https://www.openixia.github.io/ixnetwork_restpy Usage: - Enter: python