cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
4003
Views
3
Helpful
8
Replies

Create VPC using acitoolkit

sinan.polat
Level 1
Level 1

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

arikgelman
Level 4
Level 4

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

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.

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

trompa99
Cisco Employee
Cisco Employee

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.

arikgelman
Level 4
Level 4

Hi,

Did you find an answer to this issue?

Thanks,

Arik

nope

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....

arikgelman
Level 4
Level 4

Hi,

Any news regarding this issue?

Getting Started

Find answers to your questions by entering keywords or phrases in the Search bar above. New here? Use these resources to familiarize yourself with the community:


This community is intended for developer topics around Data Center technology and products. If you are looking for a non-developer topic about Data Center, you might find additional information in the Data Center and Cloud community