def test_set_primary_ip(self):
        vrid = 104
        primary_ip_cases = [
            {'value': '10.10.10.2'},
            {'default': True},
            {'value': '10.10.10.3'},
            {'disable': True},
            {'value': '10.10.10.4'},
        ]
        for dut in self.duts:
            interface = self._vlan_setup(dut)
            dut.config(['interface %s' % interface,
                        'no vrrp %d' % vrid,
                        'vrrp %d shutdown' % vrid,
                        'exit'])

            for p_ip in primary_ip_cases:
                response = dut.api('vrrp').set_primary_ip(
                    interface, vrid, **p_ip)
                self.assertIs(response, True)
dataset/ETHPy150Open arista-eosplus/pyeapi/test/system/test_api_vrrp.py/TestApiVrrp.test_set_primary_ip/original