Skip to content

Commit

Permalink
Add introspect for port-ipc module
Browse files Browse the repository at this point in the history
Change-Id: I5230001436d599f330e9210df09d5cc3029dba8c
Partial-Bug: #1635923
  • Loading branch information
praveenkv committed Nov 21, 2016
1 parent b83e7f0 commit fc96817
Show file tree
Hide file tree
Showing 4 changed files with 402 additions and 12 deletions.
1 change: 1 addition & 0 deletions src/vnsw/agent/cmn/agent.h
Original file line number Diff line number Diff line change
Expand Up @@ -253,6 +253,7 @@ extern void RouterIdDepInit(Agent *agent);

#define kTaskDBExclude "Agent::DBExcludeTask"
#define kTaskConfigManager "Agent::ConfigManager"
#define kTaskHttpRequstHandler "http::RequestHandlerTask"

#define kInterfaceDbTablePrefix "db.interface"
#define kVnDbTablePrefix "db.vn"
Expand Down
110 changes: 110 additions & 0 deletions src/vnsw/agent/port_ipc/port_ipc.sandesh
Original file line number Diff line number Diff line change
Expand Up @@ -101,3 +101,113 @@ traceobject sandesh ConfigDeleteVmVnPortEnqueue {
trace sandesh ConfigVmVnPortInfo {
1: string info;
}

/**
* Introspect request for vmi-based port subscription requests
*/
request sandesh FetchVmiPortSubscriptionReq {
1: string ifname;
2: string vmi_uuid;
}

/**
* Response for vmi-based port subscription requests
*/
struct SandeshVmiPortSubscriptionInfo {
1: string ifname;
2: u32 version;
3: string vmi_uuid;
4: string vm_uuid;
5: string vm_name;
6: string vn_uuid;
7: string ip4_addr;
8: string ip6_addr;
9: string mac;
10: i16 tx_vlan;
11: i16 rx_vlan;
}

/**
* Response for vmi-based port subscription requests
*/
response sandesh SandeshVmiPortSubscriptionResp {
1: list<SandeshVmiPortSubscriptionInfo> port_list
}

/**
* Introspect request for vmvn-based port subscription requests
*/
request sandesh FetchVmVnPortSubscriptionReq {
1: string ifname;
2: string vm_uuid;
}

/**
* Response for vmvn-based port subscription requests
*/
struct SandeshVmVnPortSubscriptionInfo {
1: string ifname;
2: u32 version;
3: string vm_uuid;
4: string vn_uuid;
5: string vmi_uuid;
6: string vm_name;
7: string vm_identifier;
8: string vm_ifname;
9: string vm_namespace;
}

/**
* Response for vmvm-based port subscription requests
*/
response sandesh SandeshVmVnPortSubscriptionResp {
1: list<SandeshVmVnPortSubscriptionInfo> port_list;
}


/**
* Introspect request for vmi-uuid to vm-uuid+vn-uuid tree
*/
request sandesh FetchVmiToVmVnUuidReq {
1: string vmi_uuid;
}

/**
* Response for vmi-uuid to vm-uuid+vn-uuid tree request
*/
struct SandeshVmiToVmVnInfo {
1: string vmi_uuid;
2: string vm_uuid;
3: string vn_uuid;
}

/**
* Response for vmi-uuid to vm-uuid+vn-uuid tree request
*/
response sandesh SandeshVmiToVmVnResp {
1: list<SandeshVmiToVmVnInfo> port_list;
}

/**
* Introspect request for <vm-uuid, vn-uuid> to vmi-uuid to tree
*/
request sandesh FetchVmVnToVmiUuidReq{
1: string vm_uuid;
2: string vn_uuid;
}

/**
* Response for <vm-uuid, vn-uuid> to vmi-uuid to tree
*/
struct SandeshVmVnToVmiInfo {
1: string vm_uuid;
2: string vn_uuid;
3: string vmi_uuid;
}

/**
* Response for <vm-uuid, vn-uuid> to vmi-uuid to tree
*/
response sandesh SandeshVmVnToVmiResp {
1: list<SandeshVmVnToVmiInfo> port_list;
}

0 comments on commit fc96817

Please sign in to comment.