cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
1193
Views
3
Helpful
8
Replies
Highlighted
Beginner

Create VPC using acitoolkit

I have read the acitoolkit documentation at http://acitoolkit.readthedocs.io/en/latest/ but unfortunately I couldn't find any information regarding creating a Virtual PortChannel.

Suggestions / tips are highly appreciated. Thanks!

8 REPLIES 8
Highlighted
Enthusiast

Re: Create VPC using acitoolkit

Hi,

I also have the same problem, I found this:

https://github.com/datacenter/acitoolkit/blob/master/samples/aci-demo-portchannel.py

It works for standard PC but not for VPC and I also wasn't able to find how to create VPC that is associated to VMM domain.

Please help,

Arik

Highlighted
Cisco Employee

Re: Create VPC using acitoolkit

Yep.

saw this in the docs.

In the acitoolkit, VPCs are also represented by the PortChannel class.


however like you said, the PCs are created from this attribute but nothing on VPC.

Highlighted
Enthusiast

Re: Create VPC using acitoolkit

I tried to use the API inspector,.

Using the GUI is does create VPC but trying to send the same API call creates PC and not VPC

Highlighted
Cisco Employee

Re: Create VPC using acitoolkit

Same here,

from the docs, its "seems" as if we use.. from acitoolkit.acitoolkit import interface, we should see it in (dir) I can create PCs all day long however missing that 1 little piece.

Highlighted
Enthusiast

Re: Create VPC using acitoolkit

Hi,

Did you find an answer to this issue?

Thanks,

Arik

Highlighted
Cisco Employee

Re: Create VPC using acitoolkit

nope

Highlighted
Enthusiast

Re: Create VPC using acitoolkit

I think I found the solution.

If you take the port channel example from the acitoolkit:

https://github.com/datacenter/acitoolkit/blob/master/samples/aci-demo-portchannel.py

And do in the end:

resp = session.push_to_apic(pc.get_url()[0],

                                    pc.get_json()[0])

        if not resp.ok:

            print('%% Error: Could not push configuration to APIC')

            print(resp.text)

resp = session.push_to_apic(pc.get_url()[1],

                                    pc.get_json()[1])

        if not resp.ok:

            print('%% Error: Could not push configuration to APIC')

            print(resp.text)

It works....

Highlighted
Enthusiast

Re: Create VPC using acitoolkit

Hi,

Any news regarding this issue?

This widget could not be displayed.